Break ReactOS CRT:
- Add back crash on NULL pointer arg. This is the behaviour on w2k3.
- Don't skip \\?\ prefix any longer. This is the behaviour on w2k3.

svn path=/trunk/; revision=54452
This commit is contained in:
Pierre Schweitzer 2011-11-19 22:29:03 +00:00
parent df03d3cc8b
commit 4e74b02cd3

View file

@ -21,6 +21,7 @@ void _tsplitpath(const _TCHAR* path, _TCHAR* drive, _TCHAR* dir, _TCHAR* fname,
if (fname) fname[0] = '\0';
if (ext) ext[0] = '\0';
#if WINVER >= 0x600
/* Check parameter */
if (!path)
{
@ -29,10 +30,13 @@ void _tsplitpath(const _TCHAR* path, _TCHAR* drive, _TCHAR* dir, _TCHAR* fname,
#endif
return;
}
#endif
#if WINVER == 0x600
/* Skip '\\?\' prefix */
if ((path[0] == '\\') && (path[1] == '\\') &&
(path[2] == '?') && (path[3] == '\\')) path += 4;
#endif
if (path[0] == '\0') return;