Author: ion
Date: Mon Jul 25 18:39:56 2011
New Revision: 52863
URL:
http://svn.reactos.org/svn/reactos?rev=52863&view=rev
Log:
[CSRSRV]: Initialize CSR_CONNECTION_INFO in CsrpHandleConnectionRequest. Should fix the
fact CsrProcessId was bogus before, as were the CSR PEB fields.
Modified:
trunk/reactos/subsystems/win32/csrss/csrsrv/api/wapi.c
Modified: trunk/reactos/subsystems/win32/csrss/csrsrv/api/wapi.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/csrss/csr…
==============================================================================
--- trunk/reactos/subsystems/win32/csrss/csrsrv/api/wapi.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/csrss/csrsrv/api/wapi.c [iso-8859-1] Mon Jul 25
18:39:56 2011
@@ -127,11 +127,19 @@
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,