Commit 19e9b665 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

wintrust: Add explicit "!= NO_ERROR" to expressions that use variables…

wintrust: Add explicit "!= NO_ERROR" to expressions that use variables containing error codes as booleans.
parent 7af7e8ec
...@@ -849,14 +849,14 @@ HRESULT WINAPI GenericChainFinalProv(CRYPT_PROVIDER_DATA *data) ...@@ -849,14 +849,14 @@ HRESULT WINAPI GenericChainFinalProv(CRYPT_PROVIDER_DATA *data)
else else
err = ERROR_OUTOFMEMORY; err = ERROR_OUTOFMEMORY;
} }
if (!err) if (err == NO_ERROR)
err = policyCallback(data, TRUSTERROR_STEP_FINAL_POLICYPROV, err = policyCallback(data, TRUSTERROR_STEP_FINAL_POLICYPROV,
data->dwRegPolicySettings, data->csSigners, signers, policyArg); data->dwRegPolicySettings, data->csSigners, signers, policyArg);
data->psPfns->pfnFree(signers); data->psPfns->pfnFree(signers);
} }
if (err) if (err != NO_ERROR)
data->padwTrustStepErrors[TRUSTERROR_STEP_FINAL_POLICYPROV] = err; data->padwTrustStepErrors[TRUSTERROR_STEP_FINAL_POLICYPROV] = err;
TRACE("returning %d (%08x)\n", !err ? S_OK : S_FALSE, TRACE("returning %d (%08x)\n", err == NO_ERROR ? S_OK : S_FALSE,
data->padwTrustStepErrors[TRUSTERROR_STEP_FINAL_POLICYPROV]); data->padwTrustStepErrors[TRUSTERROR_STEP_FINAL_POLICYPROV]);
return err == NO_ERROR ? S_OK : S_FALSE; return err == NO_ERROR ? S_OK : S_FALSE;
} }
......
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