SHELL32/tests: correct a check to succeed in win98

Saulius Krasuckas saulius2 at ar.fi.lt
Fri Aug 12 03:01:47 CDT 2005


Log message:
        Saulius Krasuckas <saulius.krasuckas at ieee.org>
	Win98 returns HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND)) on failure.


Index: dlls/shell32/tests/shlfolder.c
===================================================================
RCS file: /home/wine/wine/dlls/shell32/tests/shlfolder.c,v
retrieving revision 1.28
diff -p -u -r1.28 shlfolder.c
--- dlls/shell32/tests/shlfolder.c      11 Aug 2005 10:33:21 -0000      1.28
+++ dlls/shell32/tests/shlfolder.c      12 Aug 2005 07:34:06 -0000
@@ -87,7 +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 == E_FAIL), "ParseDisplayName returned %08lx, expected E_FAIL\n", hr);
+    ok((hr == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND)) || (hr == E_FAIL), 
+        "ParseDisplayName returned %08lx, expected 80070002 or E_FAIL\n", hr);
 }
 
 /* creates a file with the specified name for tests */




More information about the wine-patches mailing list