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

This commit is contained in:
Juan Lang 2011-02-15 11:16:25 -08:00 committed by Alexandre Julliard
parent bcd14a1822
commit b377f83453
1 changed files with 25 additions and 21 deletions

View File

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