mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Allocate a larger storage for the request buffer. It is necessary since the latest changeing in ntdll for csrss connections.
svn path=/trunk/; revision=17750
This commit is contained in:
parent
af6ca3d9d4
commit
d392fa8a17
1 changed files with 6 additions and 5 deletions
|
@ -177,7 +177,8 @@ DWORD STDCALL
|
|||
ServerApiPortThread (PVOID PortHandle)
|
||||
{
|
||||
NTSTATUS Status = STATUS_SUCCESS;
|
||||
PORT_MESSAGE Request;
|
||||
BYTE RawRequest[sizeof(PORT_MESSAGE) + sizeof(CSR_CONNECTION_INFO)];
|
||||
PPORT_MESSAGE Request = (PPORT_MESSAGE)RawRequest;
|
||||
HANDLE hApiListenPort = * (PHANDLE) PortHandle;
|
||||
HANDLE ServerPort = (HANDLE) 0;
|
||||
HANDLE ServerThread = (HANDLE) 0;
|
||||
|
@ -192,10 +193,10 @@ ServerApiPortThread (PVOID PortHandle)
|
|||
REMOTE_PORT_VIEW LpcRead;
|
||||
ServerPort = NULL;
|
||||
|
||||
Status = NtListenPort (hApiListenPort, &Request);
|
||||
Status = NtListenPort (hApiListenPort, Request);
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
DPRINT1("CSR: NtListenPort() failed\n");
|
||||
DPRINT1("CSR: NtListenPort() failed, status=%x\n", Status);
|
||||
break;
|
||||
}
|
||||
Status = NtAcceptConnectPort(& ServerPort,
|
||||
|
@ -210,11 +211,11 @@ ServerApiPortThread (PVOID PortHandle)
|
|||
break;
|
||||
}
|
||||
|
||||
ProcessData = CsrCreateProcessData(Request.ClientId.UniqueProcess);
|
||||
ProcessData = CsrCreateProcessData(Request->ClientId.UniqueProcess);
|
||||
if (ProcessData == NULL)
|
||||
{
|
||||
DPRINT1("Unable to allocate or find data for process 0x%x\n",
|
||||
Request.ClientId.UniqueProcess);
|
||||
Request->ClientId.UniqueProcess);
|
||||
Status = STATUS_UNSUCCESSFUL;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue