Commit dae160ce authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

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

parent a52c7aff
......@@ -200,7 +200,8 @@ static void test_install_class(void)
ret = SetupDiInstallClassA(NULL, tmpfile, 0, NULL);
ok(ret, "Failed to install class, error %#x.\n", GetLastError());
ok(!RegDeleteKeyW(HKEY_LOCAL_MACHINE, classKey), "Failed to delete class key, error %u.\n", GetLastError());
ret = RegDeleteKeyW(HKEY_LOCAL_MACHINE, classKey);
ok(!ret, "Failed to delete class key, error %u.\n", GetLastError());
DeleteFileA(tmpfile);
}
......
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