[ros-diffs] [hbirr] 12886: - Make the drive letter to uppercase in
RtlDosPathNameToNtPathName_U.
hbirr at svn.reactos.com
hbirr at svn.reactos.com
Sat Jan 8 13:47:34 CET 2005
- Make the drive letter to uppercase in RtlDosPathNameToNtPathName_U.
Modified: trunk/reactos/lib/ntdll/rtl/path.c
_____
Modified: trunk/reactos/lib/ntdll/rtl/path.c
--- trunk/reactos/lib/ntdll/rtl/path.c 2005-01-08 11:59:41 UTC (rev
12885)
+++ trunk/reactos/lib/ntdll/rtl/path.c 2005-01-08 12:47:32 UTC (rev
12886)
@@ -839,6 +839,12 @@
Length = wcslen(fullname + Offset);
memcpy (Buffer + tmpLength, fullname + Offset, (Length + 1) *
sizeof(WCHAR));
Length += tmpLength;
+ if (Type == ABSOLUTE_DRIVE_PATH ||
+ Type == RELATIVE_DRIVE_PATH)
+ {
+ /* make the drive letter to uppercase */
+ Buffer[tmpLength] = towupper(Buffer[tmpLength]);
+ }
/* set NT filename */
ntname->Length = Length * sizeof(WCHAR);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050108/1e09993b/attachment.html
More information about the Ros-diffs
mailing list