Commit 5350eea7 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

shell32: Avoid a crash in testsuite.

This happens on wow32 builds, we try to call a 64bit program via the generic typelib marshalling and disp is NULL. We still fail, just do not pop up the crash dialog. Signed-off-by: 's avatarMarcus Meissner <meissner@suse.de> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent c5a39bd9
......@@ -1088,6 +1088,9 @@ todo_wine {
IUnknown *unk;
ok(disp != NULL, "got %p\n", disp);
if (disp == NULL) goto skip_disp_tests;
ok(ret != HandleToUlong(hwnd), "got %d\n", ret);
/* IDispatch-related tests */
......@@ -1165,6 +1168,7 @@ if (hr == S_OK) {
IServiceProvider_Release(sp);
IDispatch_Release(disp);
}
skip_disp_tests:
disp = (void*)0xdeadbeef;
ret = 0xdead;
......
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