Author: hpoussin
Date: Sat Nov 29 21:56:14 2014
New Revision: 65532
URL:
http://svn.reactos.org/svn/reactos?rev=65532&view=rev
Log:
[RTL] Upcase drive letter in RtlGetFullPathName_Ustr
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=65532&a…
==============================================================================
--- trunk/reactos/lib/rtl/path.c [iso-8859-1] (original)
+++ trunk/reactos/lib/rtl/path.c [iso-8859-1] Sat Nov 29 21:56:14 2014
@@ -609,6 +609,7 @@
ASSERT(FileNameBuffer[1] == L':');
ASSERT(IS_PATH_SEPARATOR(FileNameBuffer[2]));
+ FileNameBuffer[0] = RtlUpcaseUnicodeChar(FileNameBuffer[0]);
Prefix = FileNameBuffer;
PrefixLength = 3 * sizeof(WCHAR);
Source += 3;
@@ -623,6 +624,7 @@
if (RtlUpcaseUnicodeChar(FileNameBuffer[0]) !=
RtlUpcaseUnicodeChar(CurDirName->Buffer[0]) ||
CurDirName->Buffer[1] != L':')
{
+ FileNameBuffer[0] = RtlUpcaseUnicodeChar(FileNameBuffer[0]);
EnvVarNameBuffer[0] = L'=';
EnvVarNameBuffer[1] = FileNameBuffer[0];
EnvVarNameBuffer[2] = L':';