From 7dc70b785ff84d62e45db5e8d12eb3ada7403143 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 12:06:58 +0000 Subject: [PATCH] =?UTF-8?q?Fix=20the=20fix=20of=20the=20fix=20(yes,=20real?= =?UTF-8?q?ly!)=20Also,=20Herv=C3=A9,=20I'm=20not=20really=20convinced=20y?= =?UTF-8?q?ou=20need=20to=20upcase=20the=20first=20letter=20in=20the=20Rtl?= =?UTF-8?q?PathTypeDriveAbsolute=20case.=20Can=20you=20recheck=20that=20(a?= =?UTF-8?q?nd=20if=20unneeded,=20remove=20the=20commented=20line)=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit svn path=/trunk/; revision=65535 --- reactos/lib/rtl/path.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/reactos/lib/rtl/path.c b/reactos/lib/rtl/path.c index f50c4f89c05..5e9e5975b29 100644 --- a/reactos/lib/rtl/path.c +++ b/reactos/lib/rtl/path.c @@ -487,7 +487,6 @@ 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) @@ -615,9 +614,8 @@ RtlGetFullPathName_Ustr( 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 @@ RtlGetFullPathName_Ustr( case RtlPathTypeDriveRelative: /* c:foo */ { + WCHAR CurDrive, NewDrive; + Source += 2; SourceLength -= 2 * sizeof(WCHAR);