Use wine_dbgstr_w as Jared did originally (I hate this macro because it displays...
[reactos.git] / rostests / apitests / shlwapi / PathIsUNC.c
index 5f10276..ef37c56 100644 (file)
@@ -25,7 +25,7 @@ static BOOL (WINAPI *pPathIsUNC)(PCWSTR);
 #define CALL_ISUNC(exp, str) \
 do { \
     BOOL ret = pPathIsUNC((str)); \
-    ok(ret == (exp), "Expected %ls to be %d, was %d\n", (str), (exp), ret); \
+    ok(ret == (exp), "Expected %s to be %d, was %d\n", wine_dbgstr_w((str)), (exp), ret); \
 } while (0)
 
 START_TEST(isuncpath)
@@ -60,7 +60,7 @@ START_TEST(isuncpath)
     CALL_ISUNC(FALSE, L"reactos//path3//path4");
     CALL_ISUNC(TRUE, L"\\\\reactos\\?");
     CALL_ISUNC(TRUE, L"\\\\reactos\\\\");
-    CALL_ISUNC(FALSE, NULL);
+    CALL_ISUNC(FALSE, (wchar_t*)NULL);
     CALL_ISUNC(FALSE, L" ");
 
     /* The test shows TRUE on Windows 2003, but returns FALSE on Windows 7 */