Commit 7c835655 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

crypt32: Don't store redundant copy of detached hash message data.

parent 254f9b9c
...@@ -1723,15 +1723,13 @@ static BOOL CDecodeMsg_FinalizeHashedContent(CDecodeMsg *msg, ...@@ -1723,15 +1723,13 @@ static BOOL CDecodeMsg_FinalizeHashedContent(CDecodeMsg *msg,
{ {
/* Unlike for non-detached messages, the data were never stored as /* Unlike for non-detached messages, the data were never stored as
* the content param, but were saved in msg->detached_data instead. * the content param, but were saved in msg->detached_data instead.
* Set the content property with the detached data so the data may
* be hashed.
*/ */
ContextPropertyList_SetProperty(msg->properties, content.pbData = msg->detached_data.pbData;
CMSG_CONTENT_PARAM, msg->detached_data.pbData, content.cbData = msg->detached_data.cbData;
msg->detached_data.cbData);
} }
ret = ContextPropertyList_FindProperty(msg->properties, else
CMSG_CONTENT_PARAM, &content); ret = ContextPropertyList_FindProperty(msg->properties,
CMSG_CONTENT_PARAM, &content);
if (ret) if (ret)
ret = CryptHashData(msg->u.hash, content.pbData, content.cbData, 0); ret = CryptHashData(msg->u.hash, content.pbData, content.cbData, 0);
} }
......
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