Index: psapi_main.c
===================================================================
--- psapi_main.c	(revision 25190)
+++ psapi_main.c	(working copy)
@@ -47,12 +47,12 @@
 #define w32_err(x, e) \
   (SetLastError(0xdeadbeef), \
    (x) \
-     ? (ok(0, "expected error=%d but succeeded\n", e), 0) \
+     ? (ok(0, "expected error=%ld but succeeded\n", e), 0) \
      : GetLastError() == e \
-       ? (ok(1, "failed with %d\n", e), 1) \
+       ? (ok(1, "failed with %ld\n", e), 1) \
        : GetLastError() == 0xdeadbeef \
          ? (ok(0, "failed without error code\n"), 0) \
-         : (ok(0, "expected error=%d but failed with %ld\n", \
+         : (ok(0, "expected error=%ld but failed with %ld\n", \
 	         e, GetLastError()), 0))
 
 static BOOL  (WINAPI *pEmptyWorkingSet)(HANDLE);
