From 8e4114be1081b2f03cd6ad3f67995f58314a87fe Mon Sep 17 00:00:00 2001 From: Eric Pouech Date: Tue, 1 Mar 2022 08:34:49 +0100 Subject: [PATCH] ndis.sys/tests: Enable compilation with long types. Signed-off-by: Eric Pouech Signed-off-by: Alexandre Julliard --- dlls/ndis.sys/tests/Makefile.in | 1 - dlls/ndis.sys/tests/ndis.c | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/dlls/ndis.sys/tests/Makefile.in b/dlls/ndis.sys/tests/Makefile.in index f7073072fbf..8544dfdff2f 100644 --- a/dlls/ndis.sys/tests/Makefile.in +++ b/dlls/ndis.sys/tests/Makefile.in @@ -1,4 +1,3 @@ -EXTRADEFS = -DWINE_NO_LONG_TYPES TESTDLL = ndis.sys IMPORTS = iphlpapi advapi32 ole32 diff --git a/dlls/ndis.sys/tests/ndis.c b/dlls/ndis.sys/tests/ndis.c index 3349f1dae97..9a9ddcf7e7f 100644 --- a/dlls/ndis.sys/tests/ndis.c +++ b/dlls/ndis.sys/tests/ndis.c @@ -54,7 +54,7 @@ static void test_device(const WCHAR *service_name, const MIB_IF_ROW2 *row) if (status != STATUS_SUCCESS) { - skip( "Couldn't open the device (status = %d)\n", status ); + skip( "Couldn't open the device (status = %ld)\n", status ); return; } @@ -63,8 +63,8 @@ static void test_device(const WCHAR *service_name, const MIB_IF_ROW2 *row) iosb.Information = 0xdeadbeef; status = NtDeviceIoControlFile( netdev, NULL, NULL, NULL, &iosb, IOCTL_NDIS_QUERY_GLOBAL_STATS, &oid, sizeof(oid), &medium, sizeof(medium) ); - ok(status == STATUS_INVALID_PARAMETER, "got status %#x\n", status); - ok(iosb.Status == 0xdeadbeef, "got %#x\n", iosb.Status); + ok(status == STATUS_INVALID_PARAMETER, "got status %#lx\n", status); + ok(iosb.Status == 0xdeadbeef, "got %#lx\n", iosb.Status); ok(iosb.Information == 0xdeadbeef, "got size %#Ix\n", iosb.Information); oid = OID_GEN_MEDIA_SUPPORTED;