From 6dc99e73a293250502e7b93c2e7a0c1ca48fdf8a Mon Sep 17 00:00:00 2001 From: Alex Ionescu Date: Mon, 30 Oct 2006 17:04:49 +0000 Subject: [PATCH] - Fix incorrect parameter shuffle in NtAcceptConnectPort. CSRSS now initializes properly and kernel32 gets loaded, but fails when connecting. svn path=/trunk/; revision=24679 --- reactos/ntoskrnl/lpc/ntlpc/complete.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/reactos/ntoskrnl/lpc/ntlpc/complete.c b/reactos/ntoskrnl/lpc/ntlpc/complete.c index effca420d0f..2fd24a465d8 100644 --- a/reactos/ntoskrnl/lpc/ntlpc/complete.c +++ b/reactos/ntoskrnl/lpc/ntlpc/complete.c @@ -42,8 +42,8 @@ NtAcceptConnectPort(OUT PHANDLE PortHandle, IN PVOID PortContext OPTIONAL, IN PPORT_MESSAGE ReplyMessage, IN BOOLEAN AcceptConnection, - IN PPORT_VIEW ClientView, - IN PREMOTE_PORT_VIEW ServerView) + IN PPORT_VIEW ServerView, + IN PREMOTE_PORT_VIEW ClientView) { PLPCP_PORT_OBJECT ConnectionPort, ServerPort, ClientPort; PVOID ClientSectionToMap = NULL; @@ -66,14 +66,14 @@ NtAcceptConnectPort(OUT PHANDLE PortHandle, ServerView); /* Validate the size of the server view */ - if ((ServerView) && (ServerView->Length != sizeof(REMOTE_PORT_VIEW))) + if ((ServerView) && (ServerView->Length != sizeof(PORT_VIEW))) { /* Invalid size */ return STATUS_INVALID_PARAMETER; } /* Validate the size of the client view */ - if ((ClientView) && (ClientView->Length != sizeof(PORT_VIEW))) + if ((ClientView) && (ClientView->Length != sizeof(REMOTE_PORT_VIEW))) { /* Invalid size */ return STATUS_INVALID_PARAMETER;