mirror of
https://github.com/reactos/reactos.git
synced 2024-09-06 19:02:32 +00:00
[KERNEL32]
Fix a check in ContainsPath. Patch by Gabriel Ilardi. See issue #5478 for more details. svn path=/trunk/; revision=48456
This commit is contained in:
parent
692801bff2
commit
e715956b80
|
@ -972,7 +972,7 @@ ContainsPath(LPCWSTR name)
|
|||
{
|
||||
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] == '\\'));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue