mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 06:30:37 +00:00
wintrust: Don't expect ImageGetCertificateData to succeed when Certificate is NULL.
This commit is contained in:
parent
84eed025f0
commit
14a12b8861
@ -218,10 +218,10 @@ BOOL WINAPI CryptSIPGetSignedDataMsg(SIP_SUBJECTINFO* pSubjectInfo, DWORD* pdwEn
|
||||
}
|
||||
else
|
||||
{
|
||||
DWORD len;
|
||||
DWORD len = 0;
|
||||
|
||||
ret = ImageGetCertificateData(pSubjectInfo->hFile, dwIndex, NULL, &len);
|
||||
if (!ret)
|
||||
if (GetLastError() != ERROR_INSUFFICIENT_BUFFER)
|
||||
goto error;
|
||||
pCert = HeapAlloc(GetProcessHeap(), 0, len);
|
||||
if (!pCert)
|
||||
|
Loading…
Reference in New Issue
Block a user