crypt32: Fix streamed, detached updates.
Thanks to Juan for confirming this is the correct fix.
This commit is contained in:
parent
152a55eef2
commit
e8d834e02d
|
@ -1880,7 +1880,7 @@ static BOOL CDecodeMsg_Update(HCRYPTMSG hCryptMsg, const BYTE *pbData,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (ret &&
|
if (ret && fFinal &&
|
||||||
((msg->base.open_flags & CMSG_DETACHED_FLAG && msg->base.state ==
|
((msg->base.open_flags & CMSG_DETACHED_FLAG && msg->base.state ==
|
||||||
MsgStateDataFinalized) ||
|
MsgStateDataFinalized) ||
|
||||||
(!(msg->base.open_flags & CMSG_DETACHED_FLAG) && msg->base.state ==
|
(!(msg->base.open_flags & CMSG_DETACHED_FLAG) && msg->base.state ==
|
||||||
|
|
|
@ -2248,7 +2248,6 @@ static void test_decode_msg_update(void)
|
||||||
ret = CryptMsgUpdate(msg, NULL, 0, TRUE);
|
ret = CryptMsgUpdate(msg, NULL, 0, TRUE);
|
||||||
ok(ret, "CryptMsgUpdate failed: %08x\n", GetLastError());
|
ok(ret, "CryptMsgUpdate failed: %08x\n", GetLastError());
|
||||||
ret = CryptMsgUpdate(msg, detachedSignedContent, sizeof(detachedSignedContent), FALSE);
|
ret = CryptMsgUpdate(msg, detachedSignedContent, sizeof(detachedSignedContent), FALSE);
|
||||||
todo_wine
|
|
||||||
ok(ret, "CryptMsgUpdate failed: %08x\n", GetLastError());
|
ok(ret, "CryptMsgUpdate failed: %08x\n", GetLastError());
|
||||||
ret = CryptMsgUpdate(msg, NULL, 0, TRUE);
|
ret = CryptMsgUpdate(msg, NULL, 0, TRUE);
|
||||||
ok(ret, "CryptMsgUpdate failed: %08x\n", GetLastError());
|
ok(ret, "CryptMsgUpdate failed: %08x\n", GetLastError());
|
||||||
|
|
Loading…
Reference in New Issue