mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +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
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue