wintrust: Fix uninitialized return value (Coverity).
This commit is contained in:
parent
086711818b
commit
0f632c0caf
|
@ -284,7 +284,7 @@ error:
|
|||
|
||||
static DWORD SOFTPUB_LoadCertMessage(CRYPT_PROVIDER_DATA *data)
|
||||
{
|
||||
DWORD err;
|
||||
DWORD err = ERROR_SUCCESS;
|
||||
|
||||
if (data->pWintrustData->u.pCert &&
|
||||
WVT_IS_CBSTRUCT_GT_MEMBEROFFSET(WINTRUST_CERT_INFO,
|
||||
|
@ -325,11 +325,6 @@ static DWORD SOFTPUB_LoadCertMessage(CRYPT_PROVIDER_DATA *data)
|
|||
if (!ret)
|
||||
err = GetLastError();
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Do nothing!? See the tests */
|
||||
err = ERROR_SUCCESS;
|
||||
}
|
||||
}
|
||||
else
|
||||
err = ERROR_INVALID_PARAMETER;
|
||||
|
|
Loading…
Reference in New Issue