wintrust: Add explicit "!= NO_ERROR" to expressions that use variables containing error codes as booleans.

This commit is contained in:
Rob Shearman 2008-09-12 13:01:20 +01:00 committed by Alexandre Julliard
parent 7af7e8ece5
commit 19e9b665c6
1 changed files with 3 additions and 3 deletions

View File

@ -849,14 +849,14 @@ HRESULT WINAPI GenericChainFinalProv(CRYPT_PROVIDER_DATA *data)
else
err = ERROR_OUTOFMEMORY;
}
if (!err)
if (err == NO_ERROR)
err = policyCallback(data, TRUSTERROR_STEP_FINAL_POLICYPROV,
data->dwRegPolicySettings, data->csSigners, signers, policyArg);
data->psPfns->pfnFree(signers);
}
if (err)
if (err != NO_ERROR)
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]);
return err == NO_ERROR ? S_OK : S_FALSE;
}