Author: jgardou
Date: Sun Jul 17 10:51:42 2011
New Revision: 52707
URL:
http://svn.reactos.org/svn/reactos?rev=52707&view=rev
Log:
[RTL]
- fix RtlDosSearchPath_U : do not alter filename while searching for file extension
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=52707&a…
==============================================================================
--- trunk/reactos/lib/rtl/path.c [iso-8859-1] (original)
+++ trunk/reactos/lib/rtl/path.c [iso-8859-1] Sun Jul 17 10:51:42 2011
@@ -1115,6 +1115,7 @@
ULONG ExtensionLength, Length, FileNameLength, PathLength;
UNICODE_STRING TempString;
PWCHAR NewBuffer, BufferStart;
+ PCWSTR TempPtr;
/* Check if this is an absolute path */
if (RtlDetermineDosPathNameType_U(FileName) != RtlPathTypeRelative)
@@ -1131,7 +1132,8 @@
}
/* Scan the filename */
- c = *FileName;
+ TempPtr = FileName;
+ c = *TempPtr;
while (c)
{
/* Looking for an extension */
@@ -1143,7 +1145,7 @@
}
/* Next character */
- c = *++FileName;
+ c = *++TempPtr;
}
/* Do we have an extension? */