Commit 21b9c5f0 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

setupapi/tests: Trace error codes when SetupOpenLog fails.

parent 3d33d8a9
......@@ -787,8 +787,9 @@ static void test_SetupLogError(void)
ok(!ret, "SetupLogError succeeded\n");
ok(error == ERROR_FILE_INVALID, "got wrong error: %d\n", error);
SetLastError(0xdeadbeef);
ret = SetupOpenLog(FALSE);
ok(ret, "SetupOpenLog failed\n");
ok(ret, "SetupOpenLog failed, error %d\n", GetLastError());
SetLastError(0xdeadbeef);
ret = SetupLogErrorA("Test with wrong log severity\r\n", LogSevMaximum);
......@@ -803,8 +804,9 @@ static void test_SetupLogError(void)
ok(ret || broken(!ret && GetLastError() == ERROR_INVALID_PARAMETER /* Win Vista+ */),
"SetupLogError failed: %08x\n", GetLastError());
SetLastError(0xdeadbeef);
ret = SetupOpenLog(FALSE);
ok(ret, "SetupOpenLog failed\n");
ok(ret, "SetupOpenLog failed, error %d\n", GetLastError());
SetupCloseLog();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment