Author: pschweitzer
Date: Sat Nov 19 22:29:03 2011
New Revision: 54452

URL: http://svn.reactos.org/svn/reactos?rev=54452&view=rev
Log:
[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.

Modified:
    trunk/reactos/lib/sdk/crt/string/splitp.c

Modified: trunk/reactos/lib/sdk/crt/string/splitp.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/string/splitp.c?rev=54452&r1=54451&r2=54452&view=diff
==============================================================================
--- trunk/reactos/lib/sdk/crt/string/splitp.c [iso-8859-1] (original)
+++ trunk/reactos/lib/sdk/crt/string/splitp.c [iso-8859-1] Sat Nov 19 22:29:03 
2011
@@ -21,6 +21,7 @@
     if (fname) fname[0] = '\0';
     if (ext) ext[0] = '\0';
 
+#if WINVER >= 0x600
     /* Check parameter */
     if (!path)
     {
@@ -29,10 +30,13 @@
 #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;
 


Reply via email to