crypt32: Don't assume a function succeeded (clang).
This commit is contained in:
parent
bcd14a1822
commit
b377f83453
|
@ -1559,11 +1559,14 @@ static BOOL WINAPI CRYPT_ExportKeyTrans(
|
|||
X509_ASN_ENCODING, &keyInfo, &expKey);
|
||||
if (ret)
|
||||
{
|
||||
BYTE *keyBlob;
|
||||
DWORD size;
|
||||
|
||||
ret = CryptExportKey(pContentEncryptInfo->hContentEncryptKey, expKey,
|
||||
SIMPLEBLOB, 0, NULL, &size);
|
||||
if (ret)
|
||||
{
|
||||
BYTE *keyBlob;
|
||||
|
||||
keyBlob = CryptMemAlloc(size);
|
||||
if (keyBlob)
|
||||
{
|
||||
|
@ -1591,6 +1594,7 @@ static BOOL WINAPI CRYPT_ExportKeyTrans(
|
|||
}
|
||||
else
|
||||
ret = FALSE;
|
||||
}
|
||||
CryptDestroyKey(expKey);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue