shlwapi/tests: Fix some failures on XP and W2K3.

This commit is contained in:
Paul Vriens 2008-11-04 13:49:02 +01:00 committed by Alexandre Julliard
parent f039960586
commit 6fd4c62802
1 changed files with 4 additions and 0 deletions

View File

@ -219,6 +219,10 @@ static void test_getstring_no_extra(void)
}
hr = pAssocQueryStringA(0, ASSOCSTR_EXECUTABLE, dotWinetest, NULL, buf, &len);
ok(hr == S_OK ||
hr == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND), /* XP and W2K3 */
"Unexpected result : %08x\n", hr);
hr = pAssocQueryStringA(0, ASSOCSTR_EXECUTABLE, dotWinetest, "foo", buf, &len);
expect_hr(S_OK, hr);
ok(strstr(buf, action) != NULL,
"got '%s' (Expected result to include 'notepad.exe')\n", buf);