Yes we should do it as WINE. Fixes a buffer overflow in RtlDetermineDosPathNameType_U()

svn path=/trunk/; revision=23967
This commit is contained in:
Thomas Bluemel 2006-09-07 19:20:42 +00:00
parent 2417bf273f
commit 3a4bb3b8dc

View file

@ -75,12 +75,7 @@ RtlDetermineDosPathNameType_U(PCWSTR Path)
}
else
{
/* FIXME: the Wine version of this line reads:
* if (!Path[1] || Path[1] != L':') return RtlPathTypeRelative
* Should we do this too?
* -Gunnar
*/
if (Path[1] != L':') return RtlPathTypeRelative; /* xxx */
if (!Path[1] || Path[1] != L':') return RtlPathTypeRelative; /* xxx */
if (IS_PATH_SEPARATOR(Path[2])) return RtlPathTypeDriveAbsolute; /* x:\xxx */
return RtlPathTypeDriveRelative; /* x:xxx */