Commit cf353535 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

wintrust: Remove redundant check of pbSignedDataMsg (Coverity).

parent 1626da2b
......@@ -233,9 +233,7 @@ BOOL WINAPI CryptSIPGetSignedDataMsg(SIP_SUBJECTINFO* pSubjectInfo, DWORD* pdwEn
&len);
if (!ret)
goto error;
if (!pbSignedDataMsg)
*pcbSignedDataMsg = pCert->dwLength;
else if (*pcbSignedDataMsg < pCert->dwLength)
if (*pcbSignedDataMsg < pCert->dwLength)
{
*pcbSignedDataMsg = pCert->dwLength;
SetLastError(ERROR_INSUFFICIENT_BUFFER);
......
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