mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 11:02:16 +00:00
- Add correct calls to NtAcceptConnectPort if NTLPC is used. Now we freeze because CSRSS uses client/server views so I have to implement that.
svn path=/trunk/; revision=24674
This commit is contained in:
parent
9eeadde533
commit
560282ce30
2 changed files with 18 additions and 5 deletions
|
@ -217,7 +217,7 @@ ServerApiPortThread (PVOID PortHandle)
|
|||
|
||||
CsrInitProcessData();
|
||||
|
||||
DPRINT("CSR: %s called", __FUNCTION__);
|
||||
DPRINT1("CSR: %s called", __FUNCTION__);
|
||||
|
||||
for (;;)
|
||||
{
|
||||
|
@ -231,8 +231,13 @@ ServerApiPortThread (PVOID PortHandle)
|
|||
break;
|
||||
}
|
||||
Status = NtAcceptConnectPort(& ServerPort,
|
||||
#ifdef NTLPC
|
||||
NULL,
|
||||
Request,
|
||||
#else
|
||||
hApiListenPort,
|
||||
NULL,
|
||||
NULL,
|
||||
#endif
|
||||
TRUE,
|
||||
0,
|
||||
& LpcRead);
|
||||
|
@ -307,7 +312,7 @@ ServerSbApiPortThread (PVOID PortHandle)
|
|||
NTSTATUS Status = STATUS_SUCCESS;
|
||||
PPORT_MESSAGE Reply = NULL;
|
||||
|
||||
DPRINT("CSR: %s called\n", __FUNCTION__);
|
||||
DPRINT1("CSR: %s called\n", __FUNCTION__);
|
||||
|
||||
RtlZeroMemory(&Request, sizeof(PORT_MESSAGE));
|
||||
Status = NtListenPort (hSbApiPortListen, & Request);
|
||||
|
@ -318,8 +323,13 @@ ServerSbApiPortThread (PVOID PortHandle)
|
|||
} else {
|
||||
DPRINT("-- 1\n");
|
||||
Status = NtAcceptConnectPort (& hConnectedPort,
|
||||
hSbApiPortListen,
|
||||
NULL,
|
||||
#ifdef NTLPC
|
||||
NULL,
|
||||
&Request,
|
||||
#else
|
||||
hSbApiPortListen,
|
||||
NULL,
|
||||
#endif
|
||||
TRUE,
|
||||
NULL,
|
||||
NULL);
|
||||
|
|
|
@ -6,6 +6,9 @@
|
|||
<define name="__USE_W32API" />
|
||||
<define name="_WIN32_WINNT">0x0600</define>
|
||||
<define name="WINVER">0x0501</define>
|
||||
<if property="NTLPC" value="1">
|
||||
<define name="NTLPC" />
|
||||
</if>
|
||||
<library>nt</library>
|
||||
<library>intrlck</library>
|
||||
<library>ntdll</library>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue