wintrust: Remove superfluous pointer casts.
This commit is contained in:
parent
30a37b65dc
commit
0087064c2f
|
@ -100,7 +100,7 @@ static BOOL WINAPI CRYPT_AsnEncodeOctets(DWORD dwCertEncodingType,
|
|||
DWORD *pcbEncoded)
|
||||
{
|
||||
BOOL ret = TRUE;
|
||||
const CRYPT_DATA_BLOB *blob = (const CRYPT_DATA_BLOB *)pvStructInfo;
|
||||
const CRYPT_DATA_BLOB *blob = pvStructInfo;
|
||||
DWORD bytesNeeded, lenBytes;
|
||||
|
||||
TRACE("(%d, %p), %p, %d\n", blob->cbData, blob->pbData, pbEncoded,
|
||||
|
@ -140,7 +140,7 @@ BOOL WINAPI WVTAsn1SpcLinkEncode(DWORD dwCertEncodingType,
|
|||
|
||||
__TRY
|
||||
{
|
||||
const SPC_LINK *link = (const SPC_LINK *)pvStructInfo;
|
||||
const SPC_LINK *link = pvStructInfo;
|
||||
DWORD bytesNeeded, lenBytes;
|
||||
|
||||
switch (link->dwLinkChoice)
|
||||
|
@ -352,7 +352,7 @@ static BOOL WINAPI CRYPT_AsnEncodeBits(DWORD dwCertEncodingType,
|
|||
|
||||
__TRY
|
||||
{
|
||||
const CRYPT_BIT_BLOB *blob = (const CRYPT_BIT_BLOB *)pvStructInfo;
|
||||
const CRYPT_BIT_BLOB *blob = pvStructInfo;
|
||||
DWORD bytesNeeded, lenBytes, dataBytes;
|
||||
BYTE unusedBits;
|
||||
|
||||
|
@ -426,8 +426,7 @@ static BOOL WINAPI CRYPT_AsnEncodeConstructed(DWORD dwCertEncodingType,
|
|||
DWORD *pcbEncoded)
|
||||
{
|
||||
BOOL ret;
|
||||
const struct AsnConstructedItem *item =
|
||||
(const struct AsnConstructedItem *)pvStructInfo;
|
||||
const struct AsnConstructedItem *item = pvStructInfo;
|
||||
DWORD len;
|
||||
|
||||
if ((ret = item->encodeFunc(dwCertEncodingType, lpszStructType,
|
||||
|
@ -473,8 +472,7 @@ BOOL WINAPI WVTAsn1SpcPeImageDataEncode(DWORD dwCertEncodingType,
|
|||
LPCSTR lpszStructType, const void *pvStructInfo, BYTE *pbEncoded,
|
||||
DWORD *pcbEncoded)
|
||||
{
|
||||
const SPC_PE_IMAGE_DATA *imageData =
|
||||
(const SPC_PE_IMAGE_DATA *)pvStructInfo;
|
||||
const SPC_PE_IMAGE_DATA *imageData = pvStructInfo;
|
||||
BOOL ret = FALSE;
|
||||
|
||||
TRACE("(0x%08x, %s, %p, %p, %p)\n", dwCertEncodingType,
|
||||
|
@ -519,7 +517,7 @@ static BOOL WINAPI CRYPT_AsnEncodeOid(DWORD dwCertEncodingType,
|
|||
LPCSTR lpszStructType, const void *pvStructInfo, BYTE *pbEncoded,
|
||||
DWORD *pcbEncoded)
|
||||
{
|
||||
LPCSTR pszObjId = (LPCSTR)pvStructInfo;
|
||||
LPCSTR pszObjId = pvStructInfo;
|
||||
DWORD bytesNeeded = 0, lenBytes;
|
||||
BOOL ret = TRUE;
|
||||
int firstPos = 0;
|
||||
|
@ -637,7 +635,7 @@ static BOOL WINAPI CRYPT_CopyEncodedBlob(DWORD dwCertEncodingType,
|
|||
LPCSTR lpszStructType, const void *pvStructInfo, BYTE *pbEncoded,
|
||||
DWORD *pcbEncoded)
|
||||
{
|
||||
const CRYPT_DER_BLOB *blob = (const CRYPT_DER_BLOB *)pvStructInfo;
|
||||
const CRYPT_DER_BLOB *blob = pvStructInfo;
|
||||
BOOL ret = TRUE;
|
||||
|
||||
if (!pbEncoded)
|
||||
|
@ -661,8 +659,7 @@ static BOOL WINAPI CRYPT_AsnEncodeAlgorithmIdWithNullParams(
|
|||
DWORD dwCertEncodingType, LPCSTR lpszStructType, const void *pvStructInfo,
|
||||
BYTE *pbEncoded, DWORD *pcbEncoded)
|
||||
{
|
||||
const CRYPT_ALGORITHM_IDENTIFIER *algo =
|
||||
(const CRYPT_ALGORITHM_IDENTIFIER *)pvStructInfo;
|
||||
const CRYPT_ALGORITHM_IDENTIFIER *algo = pvStructInfo;
|
||||
static const BYTE asn1Null[] = { ASN_NULL, 0 };
|
||||
static const CRYPT_DATA_BLOB nullBlob = { sizeof(asn1Null),
|
||||
(LPBYTE)asn1Null };
|
||||
|
@ -685,8 +682,7 @@ static BOOL WINAPI CRYPT_AsnEncodeAttributeTypeValue(DWORD dwCertEncodingType,
|
|||
LPCSTR lpszStructType, const void *pvStructInfo, BYTE *pbEncoded,
|
||||
DWORD *pcbEncoded)
|
||||
{
|
||||
const CRYPT_ATTRIBUTE_TYPE_VALUE *typeValue =
|
||||
(const CRYPT_ATTRIBUTE_TYPE_VALUE *)pvStructInfo;
|
||||
const CRYPT_ATTRIBUTE_TYPE_VALUE *typeValue = pvStructInfo;
|
||||
struct AsnEncodeSequenceItem items[] = {
|
||||
{ &typeValue->pszObjId, CRYPT_AsnEncodeOid, 0 },
|
||||
{ &typeValue->Value, CRYPT_CopyEncodedBlob, 0 },
|
||||
|
@ -706,7 +702,7 @@ static BOOL WINAPI CRYPT_AsnEncodeSPCDigest(DWORD dwCertEncodingType,
|
|||
LPCSTR lpszStructType, const void *pvStructInfo, BYTE *pbEncoded,
|
||||
DWORD *pcbEncoded)
|
||||
{
|
||||
const struct SPCDigest *digest = (const struct SPCDigest *)pvStructInfo;
|
||||
const struct SPCDigest *digest = pvStructInfo;
|
||||
struct AsnEncodeSequenceItem items[] = {
|
||||
{ &digest->DigestAlgorithm, CRYPT_AsnEncodeAlgorithmIdWithNullParams, 0 },
|
||||
{ &digest->Digest, CRYPT_CopyEncodedBlob, 0 },
|
||||
|
@ -727,8 +723,7 @@ BOOL WINAPI WVTAsn1SpcIndirectDataContentEncode(DWORD dwCertEncodingType,
|
|||
|
||||
__TRY
|
||||
{
|
||||
const SPC_INDIRECT_DATA_CONTENT *data =
|
||||
(const SPC_INDIRECT_DATA_CONTENT *)pvStructInfo;
|
||||
const SPC_INDIRECT_DATA_CONTENT *data = pvStructInfo;
|
||||
struct AsnEncodeSequenceItem items[] = {
|
||||
{ &data->Data, CRYPT_AsnEncodeAttributeTypeValue, 0 },
|
||||
{ &data->DigestAlgorithm, CRYPT_AsnEncodeSPCDigest, 0 },
|
||||
|
@ -750,7 +745,7 @@ static BOOL WINAPI CRYPT_AsnEncodeBMPString(DWORD dwCertEncodingType,
|
|||
DWORD *pcbEncoded)
|
||||
{
|
||||
BOOL ret = TRUE;
|
||||
LPCWSTR str = (LPCWSTR)pvStructInfo;
|
||||
LPCWSTR str = pvStructInfo;
|
||||
DWORD bytesNeeded, lenBytes, strLen;
|
||||
|
||||
if (str)
|
||||
|
@ -895,8 +890,7 @@ static BOOL CRYPT_AsnEncodeInteger(DWORD dwCertEncodingType,
|
|||
DWORD significantBytes, lenBytes, bytesNeeded;
|
||||
BYTE padByte = 0;
|
||||
BOOL pad = FALSE;
|
||||
const CRYPT_INTEGER_BLOB *blob =
|
||||
(const CRYPT_INTEGER_BLOB *)pvStructInfo;
|
||||
const CRYPT_INTEGER_BLOB *blob = pvStructInfo;
|
||||
|
||||
significantBytes = blob->cbData;
|
||||
if (significantBytes)
|
||||
|
@ -996,7 +990,7 @@ BOOL WINAPI WVTAsn1CatMemberInfoEncode(DWORD dwCertEncodingType,
|
|||
|
||||
__TRY
|
||||
{
|
||||
const CAT_MEMBERINFO *info = (const CAT_MEMBERINFO *)pvStructInfo;
|
||||
const CAT_MEMBERINFO *info = pvStructInfo;
|
||||
struct AsnEncodeSequenceItem items[] = {
|
||||
{ info->pwszSubjGuid, CRYPT_AsnEncodeBMPString, 0 },
|
||||
{ &info->dwCertVersion, CRYPT_AsnEncodeInt, 0 },
|
||||
|
@ -1024,7 +1018,7 @@ BOOL WINAPI WVTAsn1CatNameValueEncode(DWORD dwCertEncodingType,
|
|||
|
||||
__TRY
|
||||
{
|
||||
const CAT_NAMEVALUE *value = (const CAT_NAMEVALUE *)pvStructInfo;
|
||||
const CAT_NAMEVALUE *value = pvStructInfo;
|
||||
struct AsnEncodeSequenceItem items[] = {
|
||||
{ value->pwszTag, CRYPT_AsnEncodeBMPString, 0 },
|
||||
{ &value->fdwFlags, CRYPT_AsnEncodeInt, 0 },
|
||||
|
@ -1215,7 +1209,7 @@ static BOOL WINAPI CRYPT_AsnDecodeOctets(DWORD dwCertEncodingType,
|
|||
CRYPT_DATA_BLOB *blob;
|
||||
BYTE lenBytes = GET_LEN_BYTES(pbEncoded[1]);
|
||||
|
||||
blob = (CRYPT_DATA_BLOB *)pvStructInfo;
|
||||
blob = pvStructInfo;
|
||||
blob->cbData = dataLen;
|
||||
if (dwFlags & CRYPT_DECODE_NOCOPY_FLAG)
|
||||
blob->pbData = (BYTE *)pbEncoded + 1 + lenBytes;
|
||||
|
@ -1260,7 +1254,7 @@ static BOOL CRYPT_AsnDecodeSPCLinkInternal(DWORD dwCertEncodingType,
|
|||
}
|
||||
else
|
||||
{
|
||||
PSPC_LINK link = (PSPC_LINK)pvStructInfo;
|
||||
PSPC_LINK link = pvStructInfo;
|
||||
DWORD i;
|
||||
|
||||
link->dwLinkChoice = SPC_URL_LINK_CHOICE;
|
||||
|
@ -1309,7 +1303,7 @@ static BOOL CRYPT_AsnDecodeSPCLinkInternal(DWORD dwCertEncodingType,
|
|||
}
|
||||
else
|
||||
{
|
||||
PSPC_LINK link = (PSPC_LINK)pvStructInfo;
|
||||
PSPC_LINK link = pvStructInfo;
|
||||
|
||||
link->dwLinkChoice = SPC_MONIKER_LINK_CHOICE;
|
||||
/* pwszFile pointer was set by caller, copy it
|
||||
|
@ -1347,7 +1341,7 @@ static BOOL CRYPT_AsnDecodeSPCLinkInternal(DWORD dwCertEncodingType,
|
|||
}
|
||||
else
|
||||
{
|
||||
PSPC_LINK link = (PSPC_LINK)pvStructInfo;
|
||||
PSPC_LINK link = pvStructInfo;
|
||||
DWORD i;
|
||||
const BYTE *ptr = pbEncoded + 2 + lenBytes + realLenBytes;
|
||||
|
||||
|
@ -1372,7 +1366,7 @@ static BOOL CRYPT_AsnDecodeSPCLinkInternal(DWORD dwCertEncodingType,
|
|||
}
|
||||
else
|
||||
{
|
||||
PSPC_LINK link = (PSPC_LINK)pvStructInfo;
|
||||
PSPC_LINK link = pvStructInfo;
|
||||
|
||||
link->dwLinkChoice = SPC_FILE_LINK_CHOICE;
|
||||
link->u.pwszFile[0] = '\0';
|
||||
|
@ -1415,7 +1409,7 @@ BOOL WINAPI WVTAsn1SpcLinkDecode(DWORD dwCertEncodingType,
|
|||
}
|
||||
else
|
||||
{
|
||||
SPC_LINK *link = (SPC_LINK *)pvStructInfo;
|
||||
SPC_LINK *link = pvStructInfo;
|
||||
|
||||
link->u.pwszFile =
|
||||
(LPWSTR)((BYTE *)pvStructInfo + sizeof(SPC_LINK));
|
||||
|
@ -1655,7 +1649,7 @@ static BOOL CRYPT_AsnDecodeSequence(DWORD dwCertEncodingType,
|
|||
|
||||
*pcbStructInfo = bytesNeeded;
|
||||
if (startingPointer)
|
||||
nextData = (BYTE *)startingPointer;
|
||||
nextData = startingPointer;
|
||||
else
|
||||
nextData = (BYTE *)pvStructInfo + structSize;
|
||||
memset(pvStructInfo, 0, structSize);
|
||||
|
@ -1706,7 +1700,7 @@ static BOOL WINAPI CRYPT_AsnDecodeBitsInternal(DWORD dwCertEncodingType,
|
|||
{
|
||||
CRYPT_BIT_BLOB *blob;
|
||||
|
||||
blob = (CRYPT_BIT_BLOB *)pvStructInfo;
|
||||
blob = pvStructInfo;
|
||||
blob->cbData = dataLen - 1;
|
||||
blob->cUnusedBits = *(pbEncoded + 1 +
|
||||
GET_LEN_BYTES(pbEncoded[1]));
|
||||
|
@ -1750,7 +1744,7 @@ static BOOL WINAPI CRYPT_AsnDecodeSPCLinkPointer(DWORD dwCertEncodingType,
|
|||
{
|
||||
BYTE lenBytes = GET_LEN_BYTES(pbEncoded[1]);
|
||||
DWORD size;
|
||||
SPC_LINK **pLink = (SPC_LINK **)pvStructInfo;
|
||||
SPC_LINK **pLink = pvStructInfo;
|
||||
|
||||
ret = CRYPT_AsnDecodeSPCLinkInternal(dwCertEncodingType, lpszStructType,
|
||||
pbEncoded + 1 + lenBytes, dataLen, dwFlags, NULL, &size);
|
||||
|
@ -1959,7 +1953,7 @@ static BOOL WINAPI CRYPT_AsnDecodeCopyBytes(DWORD dwCertEncodingType,
|
|||
}
|
||||
else
|
||||
{
|
||||
PCRYPT_OBJID_BLOB blob = (PCRYPT_OBJID_BLOB)pvStructInfo;
|
||||
PCRYPT_OBJID_BLOB blob = pvStructInfo;
|
||||
|
||||
*pcbStructInfo = bytesNeeded;
|
||||
blob->cbData = cbEncoded;
|
||||
|
@ -1978,8 +1972,7 @@ static BOOL WINAPI CRYPT_AsnDecodeAttributeTypeValue(DWORD dwCertEncodingType,
|
|||
LPCSTR lpszStructType, const BYTE *pbEncoded, DWORD cbEncoded, DWORD dwFlags,
|
||||
void *pvStructInfo, DWORD *pcbStructInfo)
|
||||
{
|
||||
CRYPT_ATTRIBUTE_TYPE_VALUE *typeValue =
|
||||
(CRYPT_ATTRIBUTE_TYPE_VALUE *)pvStructInfo;
|
||||
CRYPT_ATTRIBUTE_TYPE_VALUE *typeValue = pvStructInfo;
|
||||
struct AsnDecodeSequenceItem items[] = {
|
||||
{ ASN_OBJECTIDENTIFIER, offsetof(CRYPT_ATTRIBUTE_TYPE_VALUE, pszObjId),
|
||||
CRYPT_AsnDecodeOid, sizeof(LPSTR), FALSE, TRUE,
|
||||
|
@ -2002,8 +1995,7 @@ static BOOL WINAPI CRYPT_AsnDecodeAlgorithmId(DWORD dwCertEncodingType,
|
|||
LPCSTR lpszStructType, const BYTE *pbEncoded, DWORD cbEncoded, DWORD dwFlags,
|
||||
void *pvStructInfo, DWORD *pcbStructInfo)
|
||||
{
|
||||
CRYPT_ALGORITHM_IDENTIFIER *algo =
|
||||
(CRYPT_ALGORITHM_IDENTIFIER *)pvStructInfo;
|
||||
CRYPT_ALGORITHM_IDENTIFIER *algo = pvStructInfo;
|
||||
BOOL ret = TRUE;
|
||||
struct AsnDecodeSequenceItem items[] = {
|
||||
{ ASN_OBJECTIDENTIFIER, offsetof(CRYPT_ALGORITHM_IDENTIFIER, pszObjId),
|
||||
|
@ -2032,8 +2024,7 @@ static BOOL WINAPI CRYPT_AsnDecodeSPCDigest(DWORD dwCertEncodingType,
|
|||
LPCSTR lpszStructType, const BYTE *pbEncoded, DWORD cbEncoded, DWORD dwFlags,
|
||||
void *pvStructInfo, DWORD *pcbStructInfo)
|
||||
{
|
||||
struct SPCDigest *digest =
|
||||
(struct SPCDigest *)pvStructInfo;
|
||||
struct SPCDigest *digest = pvStructInfo;
|
||||
struct AsnDecodeSequenceItem items[] = {
|
||||
{ ASN_SEQUENCEOF, offsetof(struct SPCDigest, DigestAlgorithm),
|
||||
CRYPT_AsnDecodeAlgorithmId, sizeof(CRYPT_ALGORITHM_IDENTIFIER),
|
||||
|
@ -2156,7 +2147,7 @@ static BOOL CRYPT_AsnDecodeInteger(const BYTE *pbEncoded,
|
|||
}
|
||||
else
|
||||
{
|
||||
CRYPT_INTEGER_BLOB *blob = (CRYPT_INTEGER_BLOB *)pvStructInfo;
|
||||
CRYPT_INTEGER_BLOB *blob = pvStructInfo;
|
||||
|
||||
*pcbStructInfo = bytesNeeded;
|
||||
blob->cbData = dataLen;
|
||||
|
|
|
@ -795,7 +795,7 @@ HRESULT WINAPI GenericChainCertificateTrust(CRYPT_PROVIDER_DATA *data)
|
|||
{
|
||||
BOOL ret;
|
||||
WTD_GENERIC_CHAIN_POLICY_DATA *policyData =
|
||||
(WTD_GENERIC_CHAIN_POLICY_DATA *)data->pWintrustData->pPolicyCallbackData;
|
||||
data->pWintrustData->pPolicyCallbackData;
|
||||
|
||||
TRACE("(%p)\n", data);
|
||||
|
||||
|
@ -961,7 +961,7 @@ HRESULT WINAPI GenericChainFinalProv(CRYPT_PROVIDER_DATA *data)
|
|||
{
|
||||
HRESULT err = NO_ERROR; /* not a typo, MS confused the types */
|
||||
WTD_GENERIC_CHAIN_POLICY_DATA *policyData =
|
||||
(WTD_GENERIC_CHAIN_POLICY_DATA *)data->pWintrustData->pPolicyCallbackData;
|
||||
data->pWintrustData->pPolicyCallbackData;
|
||||
|
||||
TRACE("(%p)\n", data);
|
||||
|
||||
|
|
|
@ -184,7 +184,7 @@ static LONG WINTRUST_DefaultVerify(HWND hwnd, GUID *actionID,
|
|||
goto error;
|
||||
}
|
||||
|
||||
data->hWVTStateData = (HANDLE)provData;
|
||||
data->hWVTStateData = provData;
|
||||
provData->pWintrustData = data;
|
||||
if (hwnd == INVALID_HANDLE_VALUE)
|
||||
provData->hWndParent = GetDesktopWindow();
|
||||
|
@ -215,7 +215,7 @@ static LONG WINTRUST_DefaultClose(HWND hwnd, GUID *actionID,
|
|||
WINTRUST_DATA *data)
|
||||
{
|
||||
DWORD err = ERROR_SUCCESS;
|
||||
CRYPT_PROVIDER_DATA *provData = (CRYPT_PROVIDER_DATA *)data->hWVTStateData;
|
||||
CRYPT_PROVIDER_DATA *provData = data->hWVTStateData;
|
||||
|
||||
TRACE("(%p, %s, %p)\n", hwnd, debugstr_guid(actionID), data);
|
||||
|
||||
|
@ -254,8 +254,7 @@ static LONG WINTRUST_PublishedSoftware(HWND hwnd, GUID *actionID,
|
|||
/* Undocumented: the published software action is passed a path,
|
||||
* and pSIPClientData points to a WIN_TRUST_SUBJECT_FILE.
|
||||
*/
|
||||
LPWIN_TRUST_SUBJECT_FILE subjectFile =
|
||||
(LPWIN_TRUST_SUBJECT_FILE)data->pSIPClientData;
|
||||
LPWIN_TRUST_SUBJECT_FILE subjectFile = data->pSIPClientData;
|
||||
WINTRUST_FILE_INFO fileInfo = { sizeof(fileInfo), 0 };
|
||||
|
||||
TRACE("subjectFile->hFile: %p\n", subjectFile->hFile);
|
||||
|
@ -377,7 +376,7 @@ static LONG WINTRUST_CertVerify(HWND hwnd, GUID *actionID,
|
|||
/* Not sure why, but native skips the policy check */
|
||||
provData->psPfns->pfnCertCheckPolicy = NULL;
|
||||
|
||||
data->hWVTStateData = (HANDLE)provData;
|
||||
data->hWVTStateData = provData;
|
||||
provData->pWintrustData = data;
|
||||
if (hwnd == INVALID_HANDLE_VALUE)
|
||||
provData->hWndParent = GetDesktopWindow();
|
||||
|
@ -584,7 +583,7 @@ LONG WINAPI WinVerifyTrust( HWND hwnd, GUID *ActionID, LPVOID ActionData )
|
|||
static const GUID generic_chain_verify = WINTRUST_ACTION_GENERIC_CHAIN_VERIFY;
|
||||
static const GUID cert_action_verify = CERT_CERTIFICATE_ACTION_VERIFY;
|
||||
LONG err = ERROR_SUCCESS;
|
||||
WINTRUST_DATA *actionData = (WINTRUST_DATA *)ActionData;
|
||||
WINTRUST_DATA *actionData = ActionData;
|
||||
|
||||
TRACE("(%p, %s, %p)\n", hwnd, debugstr_guid(ActionID), ActionData);
|
||||
dump_wintrust_data(ActionData);
|
||||
|
@ -709,7 +708,7 @@ CRYPT_PROVIDER_PRIVDATA *WINAPI WTHelperGetProvPrivateDataFromChain(
|
|||
CRYPT_PROVIDER_DATA * WINAPI WTHelperProvDataFromStateData(HANDLE hStateData)
|
||||
{
|
||||
TRACE("%p\n", hStateData);
|
||||
return (CRYPT_PROVIDER_DATA *)hStateData;
|
||||
return hStateData;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
|
@ -738,7 +737,7 @@ HANDLE WINAPI WTHelperGetFileHandle(WINTRUST_DATA *data)
|
|||
|
||||
static BOOL WINAPI WINTRUST_enumUsages(PCCRYPT_OID_INFO pInfo, void *pvArg)
|
||||
{
|
||||
PCCRYPT_OID_INFO **usages = (PCCRYPT_OID_INFO **)pvArg;
|
||||
PCCRYPT_OID_INFO **usages = pvArg;
|
||||
DWORD cUsages;
|
||||
BOOL ret;
|
||||
|
||||
|
@ -756,7 +755,7 @@ static BOOL WINAPI WINTRUST_enumUsages(PCCRYPT_OID_INFO pInfo, void *pvArg)
|
|||
*/
|
||||
for (cUsages = 0, ptr = *usages; *ptr; ptr++, cUsages++)
|
||||
;
|
||||
*usages = WINTRUST_ReAlloc((CRYPT_OID_INFO *)*usages,
|
||||
*usages = WINTRUST_ReAlloc(*usages,
|
||||
(cUsages + 2) * sizeof(PCCRYPT_OID_INFO));
|
||||
}
|
||||
if (*usages)
|
||||
|
@ -809,7 +808,7 @@ BOOL WINAPI WTHelperGetKnownUsages(DWORD action, PCCRYPT_OID_INFO **usages)
|
|||
}
|
||||
else if (action == 2)
|
||||
{
|
||||
WINTRUST_Free((CRYPT_OID_INFO *)*usages);
|
||||
WINTRUST_Free(*usages);
|
||||
*usages = NULL;
|
||||
ret = TRUE;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue