advapi32/tests: Don't test function directly when reporting GetLastError().

This commit is contained in:
André Zwing 2022-12-29 16:47:04 +01:00 committed by Alexandre Julliard
parent 5dab8075cf
commit e2b0cbb797

View file

@ -1672,7 +1672,8 @@ static void test_reg_load_app_key(void)
RegCloseKey(appkey);
wait_file_available(hivefilepath);
ok(DeleteFileA(hivefilepath), "couldn't delete hive file %ld\n", GetLastError());
ret = DeleteFileA(hivefilepath);
ok(ret, "couldn't delete hive file %ld\n", GetLastError());
}
/* tests that show that RegConnectRegistry and