shell32/tests: Fix a test failure on W2K and earlier.

This commit is contained in:
Paul Vriens 2009-03-12 12:06:04 +01:00 committed by Alexandre Julliard
parent 7a8000d4e8
commit 0a3509255e
1 changed files with 4 additions and 1 deletions

View File

@ -757,7 +757,10 @@ static void test_GetAttributesOf(void)
if (FAILED(hr)) return;
hr = IShellFolder_GetAttributesOf(psfMyComputer, 1, &pidlEmpty, &dwFlags);
todo_wine {ok (hr == E_INVALIDARG, "MyComputer->GetAttributesOf(emtpy pidl) should fail! hr = %08x\n", hr); }
todo_wine
ok (hr == E_INVALIDARG ||
broken(SUCCEEDED(hr)), /* W2K and earlier */
"MyComputer->GetAttributesOf(emtpy pidl) should fail! hr = %08x\n", hr);
dwFlags = 0xffffffff;
hr = IShellFolder_GetAttributesOf(psfMyComputer, 0, NULL, &dwFlags);