Paul Vriens : setupapi/tests: Fix some test failures on Win9x/WinMe.
Module: wine Branch: master Commit: f4a5294c89761d5836e5d4a6a889dcb0c768cb80 URL: http://source.winehq.org/git/wine.git/?a=commit;h=f4a5294c89761d5836e5d4a6a8... Author: Paul Vriens <Paul.Vriens.Wine(a)gmail.com> Date: Wed Nov 11 17:40:05 2009 +0100 setupapi/tests: Fix some test failures on Win9x/WinMe. --- dlls/setupapi/tests/install.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/dlls/setupapi/tests/install.c b/dlls/setupapi/tests/install.c index 7b93d97..35514d5 100644 --- a/dlls/setupapi/tests/install.c +++ b/dlls/setupapi/tests/install.c @@ -491,7 +491,13 @@ static void test_inffilelist(void) * get the value as reference */ expected = 0; + SetLastError(0xdeadbeef); ret = pSetupGetInfFileListW(NULL, INF_STYLE_WIN4, NULL, 0, &expected); + if (!ret && GetLastError() == ERROR_CALL_NOT_IMPLEMENTED) + { + win_skip("SetupGetInfFileListW not implemented\n"); + return; + } ok(ret, "expected SetupGetInfFileListW to succeed! Error: %d\n", GetLastError()); ok(expected > 0, "expected required buffersize to be at least 1\n");
participants (1)
-
Alexandre Julliard