[MSVCRT]
[reactos.git] / rostests / apitests / msvcrt / splitpath.c
index 687a38c..4f2396c 100644 (file)
@@ -5,18 +5,13 @@
  * PROGRAMMER:      Timo Kreuzer
  */
 
-#include <wine/test.h>
+#include <apitest.h>
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <strings.h>
 #include <stdarg.h>
 
-#define ok_str(x, y) \
-    ok(strcmp(x, y) == 0, "got '%s', expected '%s'\n", x, y);
-
-#define ok_int(x, y) \
-    ok(x == y, "got %d, expected %d\n", x, y);
-
 START_TEST(splitpath)
 {
     char drive[5];
@@ -27,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);