Author: hbelusca
Date: Sun Nov 30 11:56:36 2014
New Revision: 65534

URL: http://svn.reactos.org/svn/reactos?rev=65534&view=rev
Log:
Fix the fix.

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=65534&r1=65533&r2=65534&view=diff
==============================================================================
--- trunk/reactos/lib/rtl/path.c        [iso-8859-1] (original)
+++ trunk/reactos/lib/rtl/path.c        [iso-8859-1] Sun Nov 30 11:56:36 2014
@@ -487,6 +487,7 @@
 
     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)
@@ -614,7 +615,9 @@
             ASSERT(FileNameBuffer[1] == L':');
             ASSERT(IS_PATH_SEPARATOR(FileNameBuffer[2]));
 
-            Prefix = RtlUpcaseUnicodeChar(FileNameBuffer[0]);
+            NewDrive = RtlUpcaseUnicodeChar(FileNameBuffer[0]);
+
+            Prefix = NewDrive;
             PrefixLength = 3 * sizeof(WCHAR);
             Source += 3;
             SourceLength -= 3 * sizeof(WCHAR);
@@ -625,8 +628,6 @@
 
         case RtlPathTypeDriveRelative:      /* c:foo   */
         {
-            WCHAR CurDrive, NewDrive;
-
             Source += 2;
             SourceLength -= 2 * sizeof(WCHAR);
 


Reply via email to