mirror of
https://github.com/reactos/reactos.git
synced 2024-12-31 19:42:51 +00:00
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)?
svn path=/trunk/; revision=65535
This commit is contained in:
parent
e077e546cd
commit
7dc70b785f
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue