mirror of
https://github.com/reactos/reactos.git
synced 2024-08-01 17:11:35 +00:00
- Initialized Reply with NULL for the first call to NtReplyWaitReceivePort.
- Removed LpcReply because it wasn't really used. svn path=/trunk/; revision=16216
This commit is contained in:
parent
73abbbd77e
commit
b5a67666e6
|
@ -113,7 +113,6 @@ STDCALL
|
||||||
ClientConnectionThread(HANDLE ServerPort)
|
ClientConnectionThread(HANDLE ServerPort)
|
||||||
{
|
{
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
LPC_MAX_MESSAGE LpcReply;
|
|
||||||
LPC_MAX_MESSAGE LpcRequest;
|
LPC_MAX_MESSAGE LpcRequest;
|
||||||
PCSR_API_MESSAGE Request;
|
PCSR_API_MESSAGE Request;
|
||||||
PCSR_API_MESSAGE Reply;
|
PCSR_API_MESSAGE Reply;
|
||||||
|
@ -121,6 +120,9 @@ ClientConnectionThread(HANDLE ServerPort)
|
||||||
|
|
||||||
DPRINT("CSR: %s called", __FUNCTION__);
|
DPRINT("CSR: %s called", __FUNCTION__);
|
||||||
|
|
||||||
|
/* Reply must be NULL at the first call to NtReplyWaitReceivePort */
|
||||||
|
Reply = NULL;
|
||||||
|
|
||||||
/* Loop and reply/wait for a new message */
|
/* Loop and reply/wait for a new message */
|
||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
|
@ -144,7 +146,6 @@ ClientConnectionThread(HANDLE ServerPort)
|
||||||
|
|
||||||
/* Get the CSR Message */
|
/* Get the CSR Message */
|
||||||
Request = (PCSR_API_MESSAGE)&LpcRequest;
|
Request = (PCSR_API_MESSAGE)&LpcRequest;
|
||||||
Reply = (PCSR_API_MESSAGE)&LpcReply;
|
|
||||||
|
|
||||||
DPRINT("CSR: Got CSR API: %x [Message Origin: %x]\n",
|
DPRINT("CSR: Got CSR API: %x [Message Origin: %x]\n",
|
||||||
Request->Type,
|
Request->Type,
|
||||||
|
|
Loading…
Reference in a new issue