mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
[CSRSRV]: Initialize CSR_CONNECTION_INFO in CsrpHandleConnectionRequest. Should fix the fact CsrProcessId was bogus before, as were the CSR PEB fields.
svn path=/trunk/; revision=52863
This commit is contained in:
parent
c1e9a0abbe
commit
f102b7df5f
1 changed files with 8 additions and 0 deletions
|
@ -127,11 +127,19 @@ CsrpHandleConnectionRequest (PPORT_MESSAGE Request,
|
|||
PCSRSS_PROCESS_DATA ProcessData = NULL;
|
||||
REMOTE_PORT_VIEW LpcRead;
|
||||
CLIENT_ID ClientId;
|
||||
PCSR_CONNECTION_INFO ConnectInfo;
|
||||
LpcRead.Length = sizeof(LpcRead);
|
||||
ServerPort = NULL;
|
||||
|
||||
DPRINT("CSR: %s: Handling: %p\n", __FUNCTION__, Request);
|
||||
|
||||
ConnectInfo = (PCSR_CONNECTION_INFO)(Request + 1);
|
||||
DPRINT1("CSR Connect Info: %p\n", ConnectInfo);
|
||||
|
||||
/* Save the process ID */
|
||||
RtlZeroMemory(ConnectInfo, sizeof(CSR_CONNECTION_INFO));
|
||||
ConnectInfo->ProcessId = NtCurrentTeb()->ClientId.UniqueProcess;
|
||||
|
||||
Status = NtAcceptConnectPort(&ServerPort,
|
||||
NULL,
|
||||
Request,
|
||||
|
|
Loading…
Reference in a new issue