Module: wine Branch: master Commit: e913d34eb25f5bf0570b99549da9105d66de3f8a URL: https://source.winehq.org/git/wine.git/?a=commit;h=e913d34eb25f5bf0570b99549...
Author: Eric Pouech eric.pouech@gmail.com Date: Thu Feb 24 11:29:40 2022 +0100
faultrep/tests: Enable compilation with long types.
Signed-off-by: Eric Pouech eric.pouech@gmail.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/faultrep/tests/Makefile.in | 1 - dlls/faultrep/tests/faultrep.c | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/dlls/faultrep/tests/Makefile.in b/dlls/faultrep/tests/Makefile.in index 202dd0571ba..404bd4d7d3f 100644 --- a/dlls/faultrep/tests/Makefile.in +++ b/dlls/faultrep/tests/Makefile.in @@ -1,4 +1,3 @@ -EXTRADEFS = -DWINE_NO_LONG_TYPES TESTDLL = faultrep.dll IMPORTS = faultrep advapi32
diff --git a/dlls/faultrep/tests/faultrep.c b/dlls/faultrep/tests/faultrep.c index 41f03ee8870..83acd34a6d4 100644 --- a/dlls/faultrep/tests/faultrep.c +++ b/dlls/faultrep/tests/faultrep.c @@ -82,11 +82,11 @@ static void test_AddERExcludedApplicationA(void)
SetLastError(0xdeadbeef); res = AddERExcludedApplicationA(NULL); - ok(!res, "got %d and 0x%x (expected FALSE)\n", res, GetLastError()); + ok(!res, "got %d and 0x%lx (expected FALSE)\n", res, GetLastError());
SetLastError(0xdeadbeef); res = AddERExcludedApplicationA(""); - ok(!res, "got %d and 0x%x (expected FALSE)\n", res, GetLastError()); + ok(!res, "got %d and 0x%lx (expected FALSE)\n", res, GetLastError());
SetLastError(0xdeadbeef); /* existence of the path doesn't matter this function succeeded */ @@ -99,12 +99,12 @@ static void test_AddERExcludedApplicationA(void) } else { - ok(res, "AddERExcludedApplicationA failed (le=0x%x)\n", GetLastError()); + ok(res, "AddERExcludedApplicationA failed (le=0x%lx)\n", GetLastError());
/* add, when already present */ SetLastError(0xdeadbeef); res = AddERExcludedApplicationA("winetest_faultrep.exe"); - ok(res, "AddERExcludedApplicationA failed (le=0x%x)\n", GetLastError()); + ok(res, "AddERExcludedApplicationA failed (le=0x%lx)\n", GetLastError()); }
/* cleanup */