Module: wine Branch: master Commit: 855c5e848d3ea5dc9f25b8b88fdb543d7490416c URL: http://source.winehq.org/git/wine.git/?a=commit;h=855c5e848d3ea5dc9f25b8b88f...
Author: Austin English austinenglish@gmail.com Date: Fri Feb 4 00:48:58 2011 -0800
wintrust/tests: Make sure return values are used (LLVM/Clang).
---
dlls/wintrust/tests/softpub.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/wintrust/tests/softpub.c b/dlls/wintrust/tests/softpub.c index 9b308ac..c602705 100644 --- a/dlls/wintrust/tests/softpub.c +++ b/dlls/wintrust/tests/softpub.c @@ -378,6 +378,7 @@ static void testObjTrust(SAFE_PROVIDER_FUNCTIONS *funcs, GUID *actionID) { fileInfo.pgKnownSubject = (GUID *)0xdeadbeef; ret = funcs->pfnObjectTrust(&data); + ok(ret == S_FALSE, "Expected S_FALSE, got %08x\n", ret); } funcs->pfnFree(data.padwTrustStepErrors); } @@ -447,6 +448,8 @@ static void testCertTrust(SAFE_PROVIDER_FUNCTIONS *funcs, GUID *actionID) WINTRUST_DATA wintrust_data = { 0 };
ret = funcs->pfnAddCert2Chain(&data, 0, FALSE, 0, cert); + ok(ret == S_FALSE, "Expected S_FALSE, got %08x\n", ret); + /* If pWintrustData isn't set, crashes attempting to access * pWintrustData->fdwRevocationChecks */