[PATCH 24/27] dlls/ndis.sys/tests: enable compilation with long types
Eric Pouech
eric.pouech at gmail.com
Tue Mar 1 01:34:49 CST 2022
Signed-off-by: Eric Pouech <eric.pouech at gmail.com>
---
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;
More information about the wine-devel
mailing list