SHELL32/tests: correct a check to succeed on XP

Saulius Krasuckas saulius2 at ar.fi.lt
Sat Aug 13 02:15:55 CDT 2005


Log message:
        Saulius Krasuckas <saulius.krasuckas at ieee.org>
        XP returns E_INVALIDARG on failure.


Index: dlls/shell32/tests/shlfolder.c
===================================================================
RCS file: /home/wine/wine/dlls/shell32/tests/shlfolder.c,v
retrieving revision 1.29
diff -p -u -r1.29 shlfolder.c
--- dlls/shell32/tests/shlfolder.c      12 Aug 2005 10:33:37 -0000      1.29
+++ dlls/shell32/tests/shlfolder.c      13 Aug 2005 07:05:46 -0000
@@ -87,8 +87,8 @@ static void test_ParseDisplayName(void)
     MultiByteToWideChar(CP_ACP, 0, cNonExistDir2A, -1, cTestDirW, MAX_PATH);
     hr = IShellFolder_ParseDisplayName(IDesktopFolder, 
         NULL, NULL, cTestDirW, NULL, &newPIDL, 0);
-    ok((hr == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND)) || (hr == E_FAIL), 
-        "ParseDisplayName returned %08lx, expected 80070002 or E_FAIL\n", hr);
+    ok((hr == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND)) || (hr == E_FAIL) || (hr == E_INVALIDARG), 
+        "ParseDisplayName returned %08lx, expected 80070002, E_FAIL or E_INVALIDARG\n", hr);
 }
 
 /* creates a file with the specified name for tests */




More information about the wine-patches mailing list