Commit ec225816 authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

shell32/tests: Fix a test failure on NT4.

parent d64f8a88
...@@ -650,7 +650,9 @@ static void test_datalink(void) ...@@ -650,7 +650,9 @@ static void test_datalink(void)
r = CoCreateInstance( &CLSID_ShellLink, NULL, CLSCTX_INPROC_SERVER, r = CoCreateInstance( &CLSID_ShellLink, NULL, CLSCTX_INPROC_SERVER,
&IID_IShellLinkW, (LPVOID*)&sl ); &IID_IShellLinkW, (LPVOID*)&sl );
ok( r == S_OK || r == E_NOINTERFACE, "CoCreateInstance failed (0x%08x)\n", r); ok( r == S_OK ||
broken(r == E_NOINTERFACE), /* Win9x */
"CoCreateInstance failed (0x%08x)\n", r);
if (!sl) if (!sl)
{ {
skip("no shelllink\n"); skip("no shelllink\n");
...@@ -658,11 +660,14 @@ static void test_datalink(void) ...@@ -658,11 +660,14 @@ static void test_datalink(void)
} }
r = IShellLinkW_QueryInterface( sl, &_IID_IShellLinkDataList, (LPVOID*) &dl ); r = IShellLinkW_QueryInterface( sl, &_IID_IShellLinkDataList, (LPVOID*) &dl );
ok(r == S_OK, "IShellLinkW_QueryInterface failed (0x%08x)\n", r); ok( r == S_OK ||
broken(r == E_NOINTERFACE), /* NT4 */
"IShellLinkW_QueryInterface failed (0x%08x)\n", r);
if (!dl) if (!dl)
{ {
skip("no datalink interface\n"); skip("no datalink interface\n");
IShellLinkW_Release( sl );
return; return;
} }
......
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