[NTOS:LPC] NtReplyWaitReceivePortEx returns the correct TotalLength for connect messages

This fixes the NtAcceptConnectPort apitest.
This commit is contained in:
Eric Kohl 2021-11-24 18:58:51 +01:00
parent a89844f740
commit 990ba54537

View file

@ -664,7 +664,7 @@ NtReplyWaitReceivePortEx(IN HANDLE PortHandle,
Message = NULL;
/* Setup the receive message */
ReceiveMessage->u1.s1.TotalLength = (CSHORT)(sizeof(LPCP_MESSAGE) +
ReceiveMessage->u1.s1.TotalLength = (CSHORT)(sizeof(PORT_MESSAGE) +
ConnectionInfoLength);
ReceiveMessage->u1.s1.DataLength = (CSHORT)ConnectionInfoLength;
RtlCopyMemory(ReceiveMessage + 1,