ntoskrnl.exe/tests: Don't test functions directly when reporting GetLastError().

Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
André Hentschel 2019-06-09 18:17:21 +02:00 committed by Alexandre Julliard
parent 8ad4cce047
commit dd84b0a744
1 changed files with 4 additions and 2 deletions

View File

@ -377,8 +377,10 @@ START_TEST(ntoskrnl)
unload_driver(service2);
unload_driver(service);
ok(DeleteFileA(filename), "DeleteFile failed: %u\n", GetLastError());
ok(DeleteFileA(filename2), "DeleteFile failed: %u\n", GetLastError());
ret = DeleteFileA(filename);
ok(ret, "DeleteFile failed: %u\n", GetLastError());
ret = DeleteFileA(filename2);
ok(ret, "DeleteFile failed: %u\n", GetLastError());
test_driver3();
}