v2: Propagate return value of CRYPT_CopyParam().
Signed-off-by: Dmitry Timoshkov dmitry@baikal.ru --- dlls/crypt32/msg.c | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/dlls/crypt32/msg.c b/dlls/crypt32/msg.c index 0e50cc13d6..cb99cf8a91 100644 --- a/dlls/crypt32/msg.c +++ b/dlls/crypt32/msg.c @@ -3190,6 +3190,12 @@ static BOOL CDecodeSignedMsg_GetParam(CDecodeMsg *msg, DWORD dwParamType, else SetLastError(CRYPT_E_INVALID_MSG_TYPE); break; + case CMSG_ENCODED_MESSAGE: + if (msg->msg_data.pbData) + ret = CRYPT_CopyParam(pvData, pcbData, msg->msg_data.pbData, msg->msg_data.cbData); + else + SetLastError(CRYPT_E_INVALID_MSG_TYPE); + break; case CMSG_ENCODED_SIGNER: if (msg->u.signed_data.info) {