Author: tkreuzer
Date: Wed Aug 4 13:33:37 2010
New Revision: 48456
URL:
http://svn.reactos.org/svn/reactos?rev=48456&view=rev
Log:
[KERNEL32]
Fix a check in ContainsPath. Patch by Gabriel Ilardi.
See issue #5478 for more details.
Modified:
trunk/reactos/dll/win32/kernel32/file/dir.c
Modified: trunk/reactos/dll/win32/kernel32/file/dir.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/file/di…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/file/dir.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/file/dir.c [iso-8859-1] Wed Aug 4 13:33:37 2010
@@ -972,7 +972,7 @@
{
if (RtlDetermineDosPathNameType_U(name) != RtlPathTypeRelative) return TRUE;
if (name[0] != '.') return FALSE;
- if (name[1] == '/' || name[1] == '\\') return TRUE;
+ if (name[1] == '/' || name[1] == '\\' || name[1] == '\0')
return TRUE;
return (name[1] == '.' && (name[2] == '/' || name[2] ==
'\\'));
}