Commit f89c3d58 authored by Sebastian Lackner's avatar Sebastian Lackner Committed by Alexandre Julliard

shell32/tests: Fix incorrect usage of broken() function.

parent 4cffa0e2
...@@ -346,7 +346,7 @@ static void test_items(void) ...@@ -346,7 +346,7 @@ static void test_items(void)
ok(r == S_OK, "Folder::Items failed: %08x\n", r); ok(r == S_OK, "Folder::Items failed: %08x\n", r);
ok(!!items, "items is null\n"); ok(!!items, "items is null\n");
r = FolderItems_QueryInterface(items, &IID_FolderItems2, (void**)&items2); r = FolderItems_QueryInterface(items, &IID_FolderItems2, (void**)&items2);
ok(r == S_OK || broken(E_NOINTERFACE) /* xp and later */, "FolderItems::QueryInterface failed: %08x\n", r); ok(r == S_OK || broken(r == E_NOINTERFACE) /* xp and later */, "FolderItems::QueryInterface failed: %08x\n", r);
ok(!!items2 || broken(!items2) /* xp and later */, "items2 is null\n"); ok(!!items2 || broken(!items2) /* xp and later */, "items2 is null\n");
r = FolderItems_QueryInterface(items, &IID_FolderItems3, (void**)&items3); r = FolderItems_QueryInterface(items, &IID_FolderItems3, (void**)&items3);
ok(r == S_OK, "FolderItems::QueryInterface failed: %08x\n", r); ok(r == S_OK, "FolderItems::QueryInterface failed: %08x\n", r);
......
...@@ -166,7 +166,7 @@ if (0) ...@@ -166,7 +166,7 @@ if (0)
details.str.u.pOleStr = NULL; details.str.u.pOleStr = NULL;
hr = IShellFolder2_GetDetailsOf(folder, NULL, 0, &details); hr = IShellFolder2_GetDetailsOf(folder, NULL, 0, &details);
ok(hr == S_OK || broken(E_NOTIMPL) /* W2K */, "got 0x%08x\n", hr); ok(hr == S_OK || broken(hr == E_NOTIMPL) /* W2K */, "got 0x%08x\n", hr);
if (SHELL_OsIsUnicode()) SHFree(details.str.u.pOleStr); if (SHELL_OsIsUnicode()) SHFree(details.str.u.pOleStr);
/* test every column if method is implemented */ /* test every column if method is implemented */
......
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