- Initialized Reply with NULL for the first call to
NtReplyWaitReceivePort.
- Removed LpcReply because it wasn't really used.
Modified: trunk/reactos/subsys/csrss/api/wapi.c
_____
Modified: trunk/reactos/subsys/csrss/api/wapi.c
--- trunk/reactos/subsys/csrss/api/wapi.c 2005-06-22 17:39:10 UTC
(rev 16215)
+++ trunk/reactos/subsys/csrss/api/wapi.c 2005-06-22 17:43:59 UTC
(rev 16216)
@@ -113,7 +113,6 @@
ClientConnectionThread(HANDLE ServerPort)
{
NTSTATUS Status;
- LPC_MAX_MESSAGE LpcReply;
LPC_MAX_MESSAGE LpcRequest;
PCSR_API_MESSAGE Request;
PCSR_API_MESSAGE Reply;
@@ -121,6 +120,9 @@
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 */
for (;;)
{
@@ -144,7 +146,6 @@
/* Get the CSR Message */
Request = (PCSR_API_MESSAGE)&LpcRequest;
- Reply = (PCSR_API_MESSAGE)&LpcReply;
DPRINT("CSR: Got CSR API: %x [Message Origin: %x]\n",
Request->Type,
Show replies by date