From e077e546cd471efb911c8275c5ea519b17e813ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Sun, 30 Nov 2014 11:56:36 +0000 Subject: [PATCH] Fix the fix. svn path=/trunk/; revision=65534 --- reactos/lib/rtl/path.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/reactos/lib/rtl/path.c b/reactos/lib/rtl/path.c index e2e428d10ba..f50c4f89c05 100644 --- a/reactos/lib/rtl/path.c +++ b/reactos/lib/rtl/path.c @@ -487,6 +487,7 @@ RtlGetFullPathName_Ustr( 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 @@ RtlGetFullPathName_Ustr( 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 @@ RtlGetFullPathName_Ustr( case RtlPathTypeDriveRelative: /* c:foo */ { - WCHAR CurDrive, NewDrive; - Source += 2; SourceLength -= 2 * sizeof(WCHAR);