[PATCH] dlls/ntdll/tests/error.c: enable compilation with long types

Eric Pouech eric.pouech at gmail.com
Fri Mar 18 02:33:59 CDT 2022


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

---
 dlls/ntdll/tests/error.c |    9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/dlls/ntdll/tests/error.c b/dlls/ntdll/tests/error.c
index 8f099e6903a..7784886c79b 100644
--- a/dlls/ntdll/tests/error.c
+++ b/dlls/ntdll/tests/error.c
@@ -18,6 +18,7 @@
  * License along with this library; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
+#undef WINE_NO_LONG_TYPES /* temporary for migration */
 
 #include <stdarg.h>
 #include <stdio.h>
@@ -75,7 +76,7 @@ static void cmp_call(NTSTATUS win_nt, ULONG win32, const char* message)
 
     err = pRtlNtStatusToDosError(win_nt);
     ok(err == win32,
-       "%s (%x): got %u, expected %u\n",
+       "%s (%lx): got %lu, expected %lu\n",
             message, win_nt, err, win32);
 }
 
@@ -86,7 +87,7 @@ static void cmp_call2(NTSTATUS win_nt, ULONG win32, const char* message)
     err = pRtlNtStatusToDosError(win_nt);
     ok(err == win32 ||
        (!strict && err == ERROR_MR_MID_NOT_FOUND),
-       "%s (%x): got %u, expected %u (or MID_NOT_FOUND)\n",
+       "%s (%lx): got %lu, expected %lu (or MID_NOT_FOUND)\n",
        message, win_nt, err, win32);
 }
 
@@ -96,7 +97,7 @@ static void cmp_call3(NTSTATUS win_nt, ULONG win32_1, ULONG win32_2, const char*
 
     err = pRtlNtStatusToDosError(win_nt);
     ok(err == win32_1 || (!strict && err == win32_2),
-       "%s (%x): got %u, expected %u or %u\n",
+       "%s (%lx): got %lu, expected %lu or %lu\n",
             message, win_nt, err, win32_1, win32_2);
 }
 
@@ -107,7 +108,7 @@ static void cmp_call4(NTSTATUS win_nt, ULONG win32_1, ULONG win32_2, const char*
     err = pRtlNtStatusToDosError(win_nt);
     ok(err == win32_1 ||
        (!strict && (err == win32_2 || err == ERROR_MR_MID_NOT_FOUND)),
-       "%s (%x): got %u, expected %u or %u\n",
+       "%s (%lx): got %lu, expected %lu or %lu\n",
             message, win_nt, err, win32_1, win32_2);
 }
 




More information about the wine-devel mailing list