+2010-09-21 Corinna Vinschen <corinna@vinschen.de>
+
+ * path.cc (cwdstuff::set): Replace constant 2 with sizeof(WCHAR) where
+ appropriate.
+
2010-09-21 Corinna Vinschen <corinna@vinschen.de>
* mount.h (class fs_info): Add has_buggy_reopen flag and accessor
PUNICODE_STRING pdir = &get_user_proc_parms ()->CurrentDirectoryName;
RtlInitEmptyUnicodeString (&win32,
(PWCHAR) crealloc_abort (win32.Buffer,
- pdir->Length + 2),
- pdir->Length + 2);
+ pdir->Length
+ + sizeof (WCHAR)),
+ pdir->Length + sizeof (WCHAR));
RtlCopyUnicodeString (&win32, pdir);
PWSTR eoBuffer = win32.Buffer + (win32.Length / sizeof (WCHAR));
}
RtlInitEmptyUnicodeString (&win32,
(PWCHAR) crealloc_abort (win32.Buffer,
- upath.Length + 2),
- upath.Length + 2);
+ upath.Length
+ + sizeof (WCHAR)),
+ upath.Length + sizeof (WCHAR));
RtlCopyUnicodeString (&win32, &upath);
if (unc_path)
win32.Buffer[0] = L'\\';