[PATCH 18/25] dlls/spoolss/tests: enable compilation with long types

Eric Pouech eric.pouech at gmail.com
Sat Mar 5 05:08:20 CST 2022


Signed-off-by: Eric Pouech <eric.pouech at gmail.com>

---
 dlls/spoolss/tests/Makefile.in |    1 -
 dlls/spoolss/tests/spoolss.c   |    6 +++---
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/dlls/spoolss/tests/Makefile.in b/dlls/spoolss/tests/Makefile.in
index 992090c3745..f54fe5937c1 100644
--- a/dlls/spoolss/tests/Makefile.in
+++ b/dlls/spoolss/tests/Makefile.in
@@ -1,4 +1,3 @@
-EXTRADEFS = -DWINE_NO_LONG_TYPES
 TESTDLL   = spoolss.dll
 
 C_SRCS = \
diff --git a/dlls/spoolss/tests/spoolss.c b/dlls/spoolss/tests/spoolss.c
index acf2801a589..ce55cf50220 100644
--- a/dlls/spoolss/tests/spoolss.c
+++ b/dlls/spoolss/tests/spoolss.c
@@ -166,7 +166,7 @@ static void test_BuildOtherNamesFromMachineName(void)
 
     todo_wine
     ok( res && (buffers != NULL) && (numentries >= 3) && (buffers[0] != NULL) && (buffers[0][0] == '\0'),
-        "got %u with %u and %p,%u (%p:%d)\n", res, GetLastError(), buffers, numentries,
+        "got %lu with %lu and %p,%lu (%p:%d)\n", res, GetLastError(), buffers, numentries,
         ((numentries > 0) && buffers) ? buffers[0] : NULL,
         ((numentries > 0) && buffers && buffers[0]) ? lstrlenW(buffers[0]) : -1);
 
@@ -183,7 +183,7 @@ static void test_SplInitializeWinSpoolDrv(VOID)
     memset(fn_spl, 0xff, sizeof(fn_spl));
     SetLastError(0xdeadbeef);
     res = pSplInitializeWinSpoolDrv(fn_spl);
-    ok(res, "got %u with %u (expected '!= 0')\n", res, GetLastError());
+    ok(res, "got %lu with %lu (expected '!= 0')\n", res, GetLastError());
 
     /* functions 0 to 5 are the same in "spoolss.dll" from w2k and above */
     if (fn_spl[6] == fn_w2k[6]) {
@@ -196,7 +196,7 @@ static void test_SplInitializeWinSpoolDrv(VOID)
     id = 0;
     while (id < WINSPOOL_TABLESIZE) {
         ok( fn_spl[id] == fn_ref[id],
-            "(#%02u) spoolss: %p (vista: %p,  xp: %p,  w2k: %p)\n",
+            "(#%02lu) spoolss: %p (vista: %p,  xp: %p,  w2k: %p)\n",
             id, fn_spl[id], fn_v[id], fn_xp[id], fn_w2k[id]);
         id++;
     }




More information about the wine-devel mailing list