[WS2_32_APITEST]
[reactos.git] / rostests / apitests / msvcrt / splitpath.c
index db4ae60..4f2396c 100644 (file)
@@ -5,7 +5,8 @@
  * PROGRAMMER:      Timo Kreuzer
  */
 
-#include <wine/test.h>
+#include <apitest.h>
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <strings.h>
@@ -21,11 +22,13 @@ START_TEST(splitpath)
 
     Major = (DWORD)(LOBYTE(LOWORD(GetVersion())));
 
+    drive[2] = 0xFF;
     _splitpath("c:\\dir1\\dir2\\file.ext", drive, dir, fname, ext);
     ok_str(drive, "c:");
     ok_str(dir, "\\dir1\\dir2\\");
     ok_str(fname, "file");
     ok_str(ext, ".ext");
+    ok_int(drive[2], 0);
 
     *_errno() = 0;
     _splitpath("c:\\dir1\\dir2\\file.ext", 0, 0, 0, 0);