Eric Pouech : ndis.sys/tests: Enable compilation with long types.
Alexandre Julliard
julliard at winehq.org
Tue Mar 1 15:45:33 CST 2022
Module: wine
Branch: master
Commit: 8e4114be1081b2f03cd6ad3f67995f58314a87fe
URL: https://source.winehq.org/git/wine.git/?a=commit;h=8e4114be1081b2f03cd6ad3f67995f58314a87fe
Author: Eric Pouech <eric.pouech at gmail.com>
Date: Tue Mar 1 08:34:49 2022 +0100
ndis.sys/tests: Enable compilation with long types.
Signed-off-by: Eric Pouech <eric.pouech at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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-cvs
mailing list