=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: setupapi/tests: Don' t test functions directly when reporting GetLastError().
Alexandre Julliard
julliard at winehq.org
Mon Jun 10 13:43:53 CDT 2019
Module: wine
Branch: master
Commit: dae160ceda33598632597527cb56090acf58f60d
URL: https://source.winehq.org/git/wine.git/?a=commit;h=dae160ceda33598632597527cb56090acf58f60d
Author: André Hentschel <nerv at dawncrow.de>
Date: Sun Jun 9 18:17:20 2019 +0200
setupapi/tests: Don't test functions directly when reporting GetLastError().
Signed-off-by: André Hentschel <nerv at dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/setupapi/tests/devinst.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/setupapi/tests/devinst.c b/dlls/setupapi/tests/devinst.c
index f266592..430dede 100644
--- a/dlls/setupapi/tests/devinst.c
+++ b/dlls/setupapi/tests/devinst.c
@@ -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);
}
More information about the wine-cvs
mailing list