Commit 0f632c0c authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

wintrust: Fix uninitialized return value (Coverity).

parent 08671181
...@@ -284,7 +284,7 @@ error: ...@@ -284,7 +284,7 @@ error:
static DWORD SOFTPUB_LoadCertMessage(CRYPT_PROVIDER_DATA *data) static DWORD SOFTPUB_LoadCertMessage(CRYPT_PROVIDER_DATA *data)
{ {
DWORD err; DWORD err = ERROR_SUCCESS;
if (data->pWintrustData->u.pCert && if (data->pWintrustData->u.pCert &&
WVT_IS_CBSTRUCT_GT_MEMBEROFFSET(WINTRUST_CERT_INFO, WVT_IS_CBSTRUCT_GT_MEMBEROFFSET(WINTRUST_CERT_INFO,
...@@ -325,11 +325,6 @@ static DWORD SOFTPUB_LoadCertMessage(CRYPT_PROVIDER_DATA *data) ...@@ -325,11 +325,6 @@ static DWORD SOFTPUB_LoadCertMessage(CRYPT_PROVIDER_DATA *data)
if (!ret) if (!ret)
err = GetLastError(); err = GetLastError();
} }
else
{
/* Do nothing!? See the tests */
err = ERROR_SUCCESS;
}
} }
else else
err = ERROR_INVALID_PARAMETER; err = ERROR_INVALID_PARAMETER;
......
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