setupapi/tests: Fix a test on NT4.

This commit is contained in:
Paul Vriens 2008-05-26 11:32:37 +02:00 committed by Alexandre Julliard
parent ee975a5611
commit b1b4063c0b
1 changed files with 3 additions and 2 deletions

View File

@ -760,8 +760,9 @@ static void testDevRegKey(void)
ok(ret, "SetupDiCreateDeviceInfoA failed: %08x\n", GetLastError());
SetLastError(0xdeadbeef);
key = pSetupDiOpenDevRegKey(NULL, NULL, 0, 0, 0, 0);
ok(key == INVALID_HANDLE_VALUE &&
GetLastError() == ERROR_INVALID_HANDLE,
ok(!key || key == INVALID_HANDLE_VALUE,
"Expected INVALID_HANDLE_VALUE or a NULL key (NT4)\n");
ok(GetLastError() == ERROR_INVALID_HANDLE,
"Expected ERROR_INVALID_HANDLE, got %d\n", GetLastError());
SetLastError(0xdeadbeef);
key = pSetupDiOpenDevRegKey(set, NULL, 0, 0, 0, 0);