Paul Vriens : shell32/tests: Fix a test failure on W2K and earlier.
Alexandre Julliard
julliard at winehq.org
Thu Mar 12 09:54:36 CDT 2009
Module: wine
Branch: master
Commit: 0a3509255e4436cc44fd817fbb1366d8bb87eef3
URL: http://source.winehq.org/git/wine.git/?a=commit;h=0a3509255e4436cc44fd817fbb1366d8bb87eef3
Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date: Thu Mar 12 12:06:04 2009 +0100
shell32/tests: Fix a test failure on W2K and earlier.
---
dlls/shell32/tests/shlfolder.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/dlls/shell32/tests/shlfolder.c b/dlls/shell32/tests/shlfolder.c
index 404c413..7c33867 100644
--- a/dlls/shell32/tests/shlfolder.c
+++ b/dlls/shell32/tests/shlfolder.c
@@ -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);
More information about the wine-cvs
mailing list