From b03a434fb4f439a4fd9d74de75f09816b5589a67 Mon Sep 17 00:00:00 2001 From: Paul Vriens Date: Wed, 21 Jan 2009 16:50:11 +0100 Subject: [PATCH] shell32/tests: Fix a test failure on Win9x and W2K. --- dlls/shell32/tests/shlfolder.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dlls/shell32/tests/shlfolder.c b/dlls/shell32/tests/shlfolder.c index bad4bba26c0..8a3ce81832a 100644 --- a/dlls/shell32/tests/shlfolder.c +++ b/dlls/shell32/tests/shlfolder.c @@ -432,7 +432,10 @@ static void test_GetDisplayName(void) /* 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); - 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)) { IShellFolder_Release(psfFile); }