From 68d4ca1f6ac1dacdccb665974114e3c3f98d8136 Mon Sep 17 00:00:00 2001 From: Saulius Krasuckas Date: Fri, 12 Aug 2005 10:33:37 +0000 Subject: [PATCH] Win98 returns HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND)) on failure. --- dlls/shell32/tests/shlfolder.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/shell32/tests/shlfolder.c b/dlls/shell32/tests/shlfolder.c index 2dee49ffed..0fa330af1a 100644 --- a/dlls/shell32/tests/shlfolder.c +++ b/dlls/shell32/tests/shlfolder.c @@ -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 */