Eric Pouech : apphelp/tests: Enable compilation with long types.
Alexandre Julliard
julliard at winehq.org
Wed Feb 23 16:00:03 CST 2022
Module: wine
Branch: master
Commit: b2de0f43a3dcd6f0f21c9494b5ddaa89c24219dc
URL: https://source.winehq.org/git/wine.git/?a=commit;h=b2de0f43a3dcd6f0f21c9494b5ddaa89c24219dc
Author: Eric Pouech <eric.pouech at gmail.com>
Date: Wed Feb 23 09:11:11 2022 +0100
apphelp/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/apphelp/tests/Makefile.in | 1 -
dlls/apphelp/tests/apphelp.c | 8 ++++----
2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/dlls/apphelp/tests/Makefile.in b/dlls/apphelp/tests/Makefile.in
index a1f28608371..2a05c019955 100644
--- a/dlls/apphelp/tests/Makefile.in
+++ b/dlls/apphelp/tests/Makefile.in
@@ -1,4 +1,3 @@
-EXTRADEFS = -DWINE_NO_LONG_TYPES
TESTDLL = apphelp.dll
IMPORTS = ole32
diff --git a/dlls/apphelp/tests/apphelp.c b/dlls/apphelp/tests/apphelp.c
index 81104d28512..dd01f7630ae 100644
--- a/dlls/apphelp/tests/apphelp.c
+++ b/dlls/apphelp/tests/apphelp.c
@@ -64,13 +64,13 @@ static void test_ApphelpCheckShellObject(void)
flags = 0xdeadbeef;
SetLastError(0xdeadbeef);
res = pApphelpCheckShellObject(objects[i], FALSE, &flags);
- ok(res && (flags == 0), "%s 0: got %d and %s with 0x%x (expected TRUE and 0)\n",
+ ok(res && (flags == 0), "%s 0: got %d and %s with 0x%lx (expected TRUE and 0)\n",
wine_dbgstr_guid(objects[i]), res, wine_dbgstr_longlong(flags), GetLastError());
flags = 0xdeadbeef;
SetLastError(0xdeadbeef);
res = pApphelpCheckShellObject(objects[i], TRUE, &flags);
- ok(res && (flags == 0), "%s 1: got %d and %s with 0x%x (expected TRUE and 0)\n",
+ ok(res && (flags == 0), "%s 1: got %d and %s with 0x%lx (expected TRUE and 0)\n",
wine_dbgstr_guid(objects[i]), res, wine_dbgstr_longlong(flags), GetLastError());
}
@@ -78,7 +78,7 @@ static void test_ApphelpCheckShellObject(void)
/* NULL as pointer to flags is checked */
SetLastError(0xdeadbeef);
res = pApphelpCheckShellObject(&GUID_NULL, FALSE, NULL);
- ok(res, "%s 0: got %d with 0x%x (expected != FALSE)\n", wine_dbgstr_guid(&GUID_NULL), res, GetLastError());
+ ok(res, "%s 0: got %d with 0x%lx (expected != FALSE)\n", wine_dbgstr_guid(&GUID_NULL), res, GetLastError());
/* NULL as CLSID* crash on Windows */
if (0)
@@ -86,7 +86,7 @@ static void test_ApphelpCheckShellObject(void)
flags = 0xdeadbeef;
SetLastError(0xdeadbeef);
res = pApphelpCheckShellObject(NULL, FALSE, &flags);
- trace("NULL as CLSID*: got %d and %s with 0x%x\n", res, wine_dbgstr_longlong(flags), GetLastError());
+ trace("NULL as CLSID*: got %d and %s with 0x%lx\n", res, wine_dbgstr_longlong(flags), GetLastError());
}
}
More information about the wine-cvs
mailing list