mirror of
https://github.com/reactos/reactos.git
synced 2024-07-06 20:55:16 +00:00
[CRT]
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:
parent
df03d3cc8b
commit
4e74b02cd3
|
@ -21,6 +21,7 @@ void _tsplitpath(const _TCHAR* path, _TCHAR* drive, _TCHAR* dir, _TCHAR* fname,
|
||||||
if (fname) fname[0] = '\0';
|
if (fname) fname[0] = '\0';
|
||||||
if (ext) ext[0] = '\0';
|
if (ext) ext[0] = '\0';
|
||||||
|
|
||||||
|
#if WINVER >= 0x600
|
||||||
/* Check parameter */
|
/* Check parameter */
|
||||||
if (!path)
|
if (!path)
|
||||||
{
|
{
|
||||||
|
@ -29,10 +30,13 @@ void _tsplitpath(const _TCHAR* path, _TCHAR* drive, _TCHAR* dir, _TCHAR* fname,
|
||||||
#endif
|
#endif
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if WINVER == 0x600
|
||||||
/* Skip '\\?\' prefix */
|
/* Skip '\\?\' prefix */
|
||||||
if ((path[0] == '\\') && (path[1] == '\\') &&
|
if ((path[0] == '\\') && (path[1] == '\\') &&
|
||||||
(path[2] == '?') && (path[3] == '\\')) path += 4;
|
(path[2] == '?') && (path[3] == '\\')) path += 4;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (path[0] == '\0') return;
|
if (path[0] == '\0') return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue