wintrust: Fix uninitialized return value (Coverity).

This commit is contained in:
Juan Lang 2010-02-01 09:11:51 -08:00 committed by Alexandre Julliard
parent 086711818b
commit 0f632c0caf
1 changed files with 1 additions and 6 deletions

View File

@ -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;