Author: hbelusca
Date: Sun Nov 30 12:06:58 2014
New Revision: 65535

URL: http://svn.reactos.org/svn/reactos?rev=65535&view=rev
Log:
Fix the fix of the fix (yes, really!) Also, Hervé, I'm not really convinced you 
need to upcase the first letter in the RtlPathTypeDriveAbsolute case. Can you 
recheck that (and if unneeded, remove the commented line)?

Modified:
    trunk/reactos/lib/rtl/path.c

Modified: trunk/reactos/lib/rtl/path.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/path.c?rev=65535&r1=65534&r2=65535&view=diff
==============================================================================
--- trunk/reactos/lib/rtl/path.c        [iso-8859-1] (original)
+++ trunk/reactos/lib/rtl/path.c        [iso-8859-1] Sun Nov 30 12:06:58 2014
@@ -487,7 +487,6 @@
 
     PCUNICODE_STRING    CurDirName;
     UNICODE_STRING      EnvVarName, EnvVarValue;
-    WCHAR CurDrive, NewDrive;
     WCHAR EnvVarNameBuffer[4];
 
     ULONG  PrefixCut    = 0;    // Where the path really starts (after the 
skipped prefix)
@@ -615,9 +614,8 @@
             ASSERT(FileNameBuffer[1] == L':');
             ASSERT(IS_PATH_SEPARATOR(FileNameBuffer[2]));
 
-            NewDrive = RtlUpcaseUnicodeChar(FileNameBuffer[0]);
-
-            Prefix = NewDrive;
+            // FileNameBuffer[0] = RtlUpcaseUnicodeChar(FileNameBuffer[0]);
+            Prefix = FileNameBuffer;
             PrefixLength = 3 * sizeof(WCHAR);
             Source += 3;
             SourceLength -= 3 * sizeof(WCHAR);
@@ -628,6 +626,8 @@
 
         case RtlPathTypeDriveRelative:      /* c:foo   */
         {
+            WCHAR CurDrive, NewDrive;
+
             Source += 2;
             SourceLength -= 2 * sizeof(WCHAR);
 


Reply via email to