wintrust/tests: make sure return values are used (LLVM/Clang) (3/4)
Austin English
austinenglish at gmail.com
Thu Feb 3 19:47:40 CST 2011
--
-Austin
-------------- next part --------------
diff --git a/dlls/wintrust/tests/register.c b/dlls/wintrust/tests/register.c
index dd266bd..acd5ca1 100644
--- a/dlls/wintrust/tests/register.c
+++ b/dlls/wintrust/tests/register.c
@@ -299,7 +299,9 @@ static void test_RegPolicyFlags(void)
ok(ret, "WintrustSetRegPolicyFlags failed: %d\n", GetLastError());
size = sizeof(flags1);
r = RegQueryValueExA(key, State, NULL, NULL, (LPBYTE)&flags1, &size);
- ok(flags1 == flags3, "Got %08x flags instead of %08x\n", flags1, flags3);
+ ok(!r || r == ERROR_FILE_NOT_FOUND, "RegQueryValueEx failed: %d\n", r);
+ if (!r)
+ ok(flags1 == flags3, "Got %08x flags instead of %08x\n", flags1, flags3);
pWintrustSetRegPolicyFlags(flags2);
More information about the wine-patches
mailing list