add a test for IShellFolder_ParseDisplayName

Saulius Krasuckas saulius2 at ar.fi.lt
Fri Aug 5 06:55:09 CDT 2005


ChangeLog:
	Saulius Krasuckas <saulius.krasuckas_at_ieee.org>
	Wine and NT4 returns E_FAIL on failure.


Index: dlls/shell32/tests/shlfolder.c
===================================================================
RCS file: /home/wine/wine/dlls/shell32/tests/shlfolder.c,v
retrieving revision 1.25
diff -p -u -r1.25 shlfolder.c
--- dlls/shell32/tests/shlfolder.c      2 Aug 2005 14:41:51 -0000       1.25
+++ dlls/shell32/tests/shlfolder.c      5 Aug 2005 11:38:36 -0000
@@ -78,12 +78,8 @@ static void test_ParseDisplayName(void)
     MultiByteToWideChar(CP_ACP, 0, cNonExistDir1A, -1, cTestDirW, MAX_PATH);
     hr = IShellFolder_ParseDisplayName(IDesktopFolder, 
         NULL, NULL, cTestDirW, NULL, &newPIDL, 0);
-    /* This call returns HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND) only in Windows.
-     * Should we distinguish between cNonExistDir1A and cNonExistDir2A ?
-     * Putting test as todo. */
-    todo_wine
-    ok(hr == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND), 
-        "ParseDisplayName returned %08lx, expected 80070002\n", hr);
+    ok((hr == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND)) || (hr == E_FAIL), 
+        "ParseDisplayName returned %08lx, expected 80070002 or E_FAIL\n", hr);
 
     res = GetFileAttributesA(cNonExistDir2A);
     if(res != INVALID_FILE_ATTRIBUTES) return;



More information about the wine-patches mailing list