Commit 749243b8 authored by Alexandre Julliard's avatar Alexandre Julliard

oleacc/tests: Preserve the full 64 bits of the LRESULT value.

parent 838965a7
...@@ -543,7 +543,7 @@ static void test_LresultFromObject(const char *name) ...@@ -543,7 +543,7 @@ static void test_LresultFromObject(const char *name)
ok(SUCCEEDED(lres), "got %lx\n", lres); ok(SUCCEEDED(lres), "got %lx\n", lres);
ok(Object_ref > 1, "Object_ref = %d\n", Object_ref); 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)); memset(&startup, 0, sizeof(startup));
startup.cb = sizeof(startup); startup.cb = sizeof(startup);
CreateProcessA(NULL, cmdline, NULL, NULL, FALSE, 0, NULL, NULL, &startup, &proc); CreateProcessA(NULL, cmdline, NULL, NULL, FALSE, 0, NULL, NULL, &startup, &proc);
...@@ -992,7 +992,7 @@ START_TEST(main) ...@@ -992,7 +992,7 @@ START_TEST(main)
HRESULT hres; HRESULT hres;
LRESULT lres; LRESULT lres;
sscanf(argv[3], "%lx", &lres); lres = strtoll( argv[3], NULL, 16 );
hres = ObjectFromLresult(lres, &IID_IUnknown, 0, (void**)&unk); hres = ObjectFromLresult(lres, &IID_IUnknown, 0, (void**)&unk);
ok(hres == S_OK, "hres = %x\n", hres); ok(hres == S_OK, "hres = %x\n", hres);
IUnknown_Release(unk); IUnknown_Release(unk);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment