- Make the drive letter to uppercase in RtlDosPathNameToNtPathName_U.
authorHartmut Birr <osexpert@googlemail.com>
Sat, 8 Jan 2005 12:47:32 +0000 (12:47 +0000)
committerHartmut Birr <osexpert@googlemail.com>
Sat, 8 Jan 2005 12:47:32 +0000 (12:47 +0000)
svn path=/trunk/; revision=12886

reactos/lib/ntdll/rtl/path.c

index f9e03c4..3e60798 100644 (file)
@@ -839,6 +839,12 @@ RtlDosPathNameToNtPathName_U(PWSTR dosname,
        Length = wcslen(fullname + Offset);
        memcpy (Buffer + tmpLength, fullname + Offset, (Length + 1) * sizeof(WCHAR));
        Length += tmpLength;
        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);
 
        /* set NT filename */
        ntname->Length        = Length * sizeof(WCHAR);