[PATCH 1/2] comctl32/tests: Fix a test failure under Windows 7.

Dmitry Timoshkov dmitry at baikal.ru
Fri Dec 14 05:10:18 CST 2018


Signed-off-by: Dmitry Timoshkov <dmitry at baikal.ru>
---
 dlls/comctl32/tests/misc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/dlls/comctl32/tests/misc.c b/dlls/comctl32/tests/misc.c
index 85f339b1ff..5e91a8066a 100644
--- a/dlls/comctl32/tests/misc.c
+++ b/dlls/comctl32/tests/misc.c
@@ -265,8 +265,7 @@ static void test_LoadIconWithScaleDown(void)
 
     /* non-existing filename */
     hr = pLoadIconMetric(NULL, nonexisting_fileW, LIM_LARGE, &icon);
-    todo_wine
-    ok(hr == HRESULT_FROM_WIN32(ERROR_RESOURCE_TYPE_NOT_FOUND),
+    ok(hr == HRESULT_FROM_WIN32(ERROR_RESOURCE_TYPE_NOT_FOUND) || hr == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND) /* Win7 */,
        "Expected HRESULT_FROM_WIN32(ERROR_RESOURCE_TYPE_NOT_FOUND), got %x\n", hr);
 
     hr = pLoadIconWithScaleDown(NULL, nonexisting_fileW, 32, 32, &icon);
-- 
2.19.2




More information about the wine-devel mailing list