Alexandre Julliard : oleacc/tests: Preserve the full 64 bits of the LRESULT value.
Alexandre Julliard
julliard at winehq.org
Thu May 30 16:27:12 CDT 2019
Module: wine
Branch: master
Commit: 749243b869362a146ba405eb7efe32f0e8f9e7e3
URL: https://source.winehq.org/git/wine.git/?a=commit;h=749243b869362a146ba405eb7efe32f0e8f9e7e3
Author: Alexandre Julliard <julliard at winehq.org>
Date: Thu May 30 15:04:47 2019 +0200
oleacc/tests: Preserve the full 64 bits of the LRESULT value.
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/oleacc/tests/main.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/oleacc/tests/main.c b/dlls/oleacc/tests/main.c
index c62fa79..685e9b7 100644
--- a/dlls/oleacc/tests/main.c
+++ b/dlls/oleacc/tests/main.c
@@ -543,7 +543,7 @@ static void test_LresultFromObject(const char *name)
ok(SUCCEEDED(lres), "got %lx\n", lres);
ok(Object_ref > 1, "Object_ref = %d\n", Object_ref);
- sprintf(cmdline, "\"%s\" main ObjectFromLresult %lx", name, lres);
+ sprintf(cmdline, "\"%s\" main ObjectFromLresult %s", name, wine_dbgstr_longlong(lres));
memset(&startup, 0, sizeof(startup));
startup.cb = sizeof(startup);
CreateProcessA(NULL, cmdline, NULL, NULL, FALSE, 0, NULL, NULL, &startup, &proc);
@@ -992,7 +992,7 @@ START_TEST(main)
HRESULT hres;
LRESULT lres;
- sscanf(argv[3], "%lx", &lres);
+ lres = strtoll( argv[3], NULL, 16 );
hres = ObjectFromLresult(lres, &IID_IUnknown, 0, (void**)&unk);
ok(hres == S_OK, "hres = %x\n", hres);
IUnknown_Release(unk);
More information about the wine-cvs
mailing list