Eric Pouech : slc/tests: Enable compilation with long types.
Alexandre Julliard
julliard at winehq.org
Mon Mar 7 16:04:57 CST 2022
Module: wine
Branch: master
Commit: 754c5eb4cf22f16b1f8678db6a2d94f6a775dd01
URL: https://source.winehq.org/git/wine.git/?a=commit;h=754c5eb4cf22f16b1f8678db6a2d94f6a775dd01
Author: Eric Pouech <eric.pouech at gmail.com>
Date: Sat Mar 5 12:08:14 2022 +0100
slc/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/slc/tests/Makefile.in | 1 -
dlls/slc/tests/slc.c | 18 +++++++++---------
2 files changed, 9 insertions(+), 10 deletions(-)
diff --git a/dlls/slc/tests/Makefile.in b/dlls/slc/tests/Makefile.in
index 86f77823a71..51b648cb854 100644
--- a/dlls/slc/tests/Makefile.in
+++ b/dlls/slc/tests/Makefile.in
@@ -1,4 +1,3 @@
-EXTRADEFS = -DWINE_NO_LONG_TYPES
TESTDLL = slc.dll
IMPORTS = slc
diff --git a/dlls/slc/tests/slc.c b/dlls/slc/tests/slc.c
index fc0b1c84ad7..10a87571e7d 100644
--- a/dlls/slc/tests/slc.c
+++ b/dlls/slc/tests/slc.c
@@ -33,30 +33,30 @@ static void test_SLGetWindowsInformationDWORD(void)
HRESULT res;
res = SLGetWindowsInformationDWORD(L"Nonexistent-License-Value", NULL);
- ok(res == E_INVALIDARG, "expected E_INVALIDARG, got %08x\n", res);
+ ok(res == E_INVALIDARG, "expected E_INVALIDARG, got %08lx\n", res);
res = SLGetWindowsInformationDWORD(NULL, &value);
- ok(res == E_INVALIDARG, "expected E_INVALIDARG, got %08x\n", res);
+ ok(res == E_INVALIDARG, "expected E_INVALIDARG, got %08lx\n", res);
value = 0xdeadbeef;
res = SLGetWindowsInformationDWORD(L"Nonexistent-License-Value", &value);
- ok(res == SL_E_VALUE_NOT_FOUND, "expected SL_E_VALUE_NOT_FOUND, got %08x\n", res);
- ok(value == 0xdeadbeef, "expected value = 0xdeadbeef, got %u\n", value);
+ ok(res == SL_E_VALUE_NOT_FOUND, "expected SL_E_VALUE_NOT_FOUND, got %08lx\n", res);
+ ok(value == 0xdeadbeef, "expected value = 0xdeadbeef, got %lu\n", value);
value = 0xdeadbeef;
res = SLGetWindowsInformationDWORD(L"", &value);
ok(res == SL_E_RIGHT_NOT_GRANTED || broken(res == 0xd000000d) /* Win 8 */,
- "expected SL_E_RIGHT_NOT_GRANTED, got %08x\n", res);
- ok(value == 0xdeadbeef, "expected value = 0xdeadbeef, got %u\n", value);
+ "expected SL_E_RIGHT_NOT_GRANTED, got %08lx\n", res);
+ ok(value == 0xdeadbeef, "expected value = 0xdeadbeef, got %lu\n", value);
value = 0xdeadbeef;
res = SLGetWindowsInformationDWORD(L"Kernel-MUI-Language-Allowed", &value);
- ok(res == SL_E_DATATYPE_MISMATCHED, "expected SL_E_DATATYPE_MISMATCHED, got %08x\n", res);
- ok(value == 0xdeadbeef, "expected value = 0xdeadbeef, got %u\n", value);
+ ok(res == SL_E_DATATYPE_MISMATCHED, "expected SL_E_DATATYPE_MISMATCHED, got %08lx\n", res);
+ ok(value == 0xdeadbeef, "expected value = 0xdeadbeef, got %lu\n", value);
value = 0xdeadbeef;
res = SLGetWindowsInformationDWORD(L"Kernel-MUI-Number-Allowed", &value);
- ok(res == S_OK, "expected S_OK, got %u\n", res);
+ ok(res == S_OK, "expected S_OK, got %lu\n", res);
ok(value != 0xdeadbeef, "expected value != 0xdeadbeef\n");
}
More information about the wine-cvs
mailing list