shell32/tests: Allow CoCreateInstance to return E_NOINTERFACE to pass on Win98; add skips and display return values.
This commit is contained in:
parent
75fbca227b
commit
de774710d6
|
@ -624,15 +624,21 @@ static void test_datalink(void)
|
|||
|
||||
r = CoCreateInstance( &CLSID_ShellLink, NULL, CLSCTX_INPROC_SERVER,
|
||||
&IID_IShellLinkW, (LPVOID*)&sl );
|
||||
ok( r == S_OK, "no shelllink\n");
|
||||
ok( r == S_OK || r == E_NOINTERFACE, "CoCreateInstance failed (0x%08x)\n", r);
|
||||
if (!sl)
|
||||
{
|
||||
skip("no shelllink\n");
|
||||
return;
|
||||
}
|
||||
|
||||
r = IShellLinkW_QueryInterface( sl, &_IID_IShellLinkDataList, (LPVOID*) &dl );
|
||||
ok(r == S_OK, "no datalink interface\n");
|
||||
ok(r == S_OK, "IShellLinkW_QueryInterface failed (0x%08x)\n", r);
|
||||
|
||||
if (!dl)
|
||||
{
|
||||
skip("no datalink interface\n");
|
||||
return;
|
||||
}
|
||||
|
||||
flags = 0;
|
||||
r = dl->lpVtbl->GetFlags( dl, &flags );
|
||||
|
|
Loading…
Reference in New Issue