https://git.reactos.org/?p=reactos.git;a=commitdiff;h=990ba545379b253958403eeb0296527f01e5234c

commit 990ba545379b253958403eeb0296527f01e5234c
Author:     Eric Kohl <[email protected]>
AuthorDate: Wed Nov 24 18:58:51 2021 +0100
Commit:     Eric Kohl <[email protected]>
CommitDate: Wed Nov 24 18:59:16 2021 +0100

    [NTOS:LPC] NtReplyWaitReceivePortEx returns the correct TotalLength for 
connect messages
    
    This fixes the NtAcceptConnectPort apitest.
---
 ntoskrnl/lpc/reply.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ntoskrnl/lpc/reply.c b/ntoskrnl/lpc/reply.c
index 8454754c3aa..b3195e3826c 100644
--- a/ntoskrnl/lpc/reply.c
+++ b/ntoskrnl/lpc/reply.c
@@ -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,

Reply via email to