setupapi/tests: Fix some test failures on Win9x/WinMe.

This commit is contained in:
Paul Vriens 2009-11-11 17:40:05 +01:00 committed by Alexandre Julliard
parent 1bd2617c7a
commit f4a5294c89
1 changed files with 6 additions and 0 deletions

View File

@ -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");