mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 14:30:57 +00:00
[RTL]
- fix RtlDosSearchPath_U : do not alter filename while searching for file extension svn path=/trunk/; revision=52707
This commit is contained in:
parent
926a182313
commit
e216eae70a
1 changed files with 4 additions and 2 deletions
|
@ -1115,6 +1115,7 @@ RtlDosSearchPath_U(IN PCWSTR Path,
|
||||||
ULONG ExtensionLength, Length, FileNameLength, PathLength;
|
ULONG ExtensionLength, Length, FileNameLength, PathLength;
|
||||||
UNICODE_STRING TempString;
|
UNICODE_STRING TempString;
|
||||||
PWCHAR NewBuffer, BufferStart;
|
PWCHAR NewBuffer, BufferStart;
|
||||||
|
PCWSTR TempPtr;
|
||||||
|
|
||||||
/* Check if this is an absolute path */
|
/* Check if this is an absolute path */
|
||||||
if (RtlDetermineDosPathNameType_U(FileName) != RtlPathTypeRelative)
|
if (RtlDetermineDosPathNameType_U(FileName) != RtlPathTypeRelative)
|
||||||
|
@ -1131,7 +1132,8 @@ RtlDosSearchPath_U(IN PCWSTR Path,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Scan the filename */
|
/* Scan the filename */
|
||||||
c = *FileName;
|
TempPtr = FileName;
|
||||||
|
c = *TempPtr;
|
||||||
while (c)
|
while (c)
|
||||||
{
|
{
|
||||||
/* Looking for an extension */
|
/* Looking for an extension */
|
||||||
|
@ -1143,7 +1145,7 @@ RtlDosSearchPath_U(IN PCWSTR Path,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Next character */
|
/* Next character */
|
||||||
c = *++FileName;
|
c = *++TempPtr;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Do we have an extension? */
|
/* Do we have an extension? */
|
||||||
|
|
Loading…
Reference in a new issue