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

This commit is contained in:
Paul Vriens 2009-01-21 16:50:11 +01:00 committed by Alexandre Julliard
parent a0164a1e64
commit b03a434fb4
1 changed files with 4 additions and 1 deletions

View File

@ -432,7 +432,10 @@ static void test_GetDisplayName(void)
/* It seems as if we cannot bind to regular files on windows, but only directories. /* It seems as if we cannot bind to regular files on windows, but only directories.
*/ */
hr = IShellFolder_BindToObject(psfDesktop, pidlTestFile, NULL, &IID_IUnknown, (VOID**)&psfFile); hr = IShellFolder_BindToObject(psfDesktop, pidlTestFile, NULL, &IID_IUnknown, (VOID**)&psfFile);
todo_wine { ok (hr == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND), "hr = %08x\n", hr); } todo_wine
ok (hr == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND) ||
broken(SUCCEEDED(hr)), /* Win9x, W2K */
"hr = %08x\n", hr);
if (SUCCEEDED(hr)) { if (SUCCEEDED(hr)) {
IShellFolder_Release(psfFile); IShellFolder_Release(psfFile);
} }