mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
- Fix incorrect parameter shuffle in NtAcceptConnectPort. CSRSS now initializes properly and kernel32 gets loaded, but fails when connecting.
svn path=/trunk/; revision=24679
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user