ole32/tests: Stop crash on XP.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alistair Leslie-Hughes 2017-03-14 00:40:36 +00:00 committed by Alexandre Julliard
parent 30a27f0ba7
commit 3ca00ff857
1 changed files with 7 additions and 1 deletions

View File

@ -3569,7 +3569,13 @@ static void test_GlobalOptions(void)
hres = CoCreateInstance(&CLSID_GlobalOptions, NULL, CLSCTX_INPROC_SERVER,
&IID_IGlobalOptions, (void**)&global_options);
ok(hres == S_OK, "CoCreateInstance(CLSID_GlobalOptions) failed: %08x\n", hres);
ok(hres == S_OK || broken(hres == E_NOINTERFACE), "CoCreateInstance(CLSID_GlobalOptions) failed: %08x\n", hres);
if(FAILED(hres))
{
win_skip("CLSID_GlobalOptions not available\n");
CoUninitialize();
return;
}
IGlobalOptions_Release(global_options);