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

crypt32: Don't assume a function succeeded (clang).

parent bcd14a18
......@@ -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);
}
......
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