crypt32: Set last error on alloc failure.

This commit is contained in:
Juan Lang 2007-11-01 20:04:36 -07:00 committed by Alexandre Julliard
parent bf313ee857
commit 81a382ac31
1 changed files with 5 additions and 2 deletions

View File

@ -749,9 +749,12 @@ static BOOL CRYPT_ValueToRDN(DWORD dwCertEncodingType, PCERT_NAME_INFO info,
ret = CRYPT_EncodeValue(dwCertEncodingType, value,
&info->rgRDN[info->cRDN].rgRDNAttr[0].Value, types, ppszError);
}
}
if (ret)
else
SetLastError(ERROR_OUTOFMEMORY);
info->cRDN++;
}
else
SetLastError(ERROR_OUTOFMEMORY);
return ret;
}