From 4e74b02cd3b6fa3405254fee10c761e261d20b05 Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Sat, 19 Nov 2011 22:29:03 +0000 Subject: [PATCH] [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 --- reactos/lib/sdk/crt/string/splitp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/reactos/lib/sdk/crt/string/splitp.c b/reactos/lib/sdk/crt/string/splitp.c index b12cee28ce5..35509158aea 100644 --- a/reactos/lib/sdk/crt/string/splitp.c +++ b/reactos/lib/sdk/crt/string/splitp.c @@ -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;