Commit 30547a45 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

wintrust: Always initialize CERT_CHAIN_PARA's RequestedUsage.

parent a9dbc17d
...@@ -606,6 +606,11 @@ static void WINTRUST_CreateChainPolicyCreateInfo( ...@@ -606,6 +606,11 @@ static void WINTRUST_CreateChainPolicyCreateInfo(
chainPara->cbSize = sizeof(CERT_CHAIN_PARA); chainPara->cbSize = sizeof(CERT_CHAIN_PARA);
if (data->pRequestUsage) if (data->pRequestUsage)
chainPara->RequestedUsage = *data->pRequestUsage; chainPara->RequestedUsage = *data->pRequestUsage;
else
{
chainPara->RequestedUsage.dwType = 0;
chainPara->RequestedUsage.Usage.cUsageIdentifier = 0;
}
info->u.cbSize = sizeof(WTD_GENERIC_CHAIN_POLICY_CREATE_INFO); info->u.cbSize = sizeof(WTD_GENERIC_CHAIN_POLICY_CREATE_INFO);
info->hChainEngine = NULL; info->hChainEngine = NULL;
info->pChainPara = chainPara; info->pChainPara = chainPara;
......
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