mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-29 19:26:33 +00:00
Initialize LPC-related fields in ETHREAD.
svn path=/trunk/; revision=8866
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* $Id: create.c,v 1.72 2004/03/19 12:45:07 ekohl Exp $
|
||||
/* $Id: create.c,v 1.73 2004/03/24 22:00:39 ea Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
@@ -21,6 +21,8 @@
|
||||
|
||||
/* INCLUDES ****************************************************************/
|
||||
|
||||
#include <limits.h>
|
||||
|
||||
#define NTOS_MODE_KERNEL
|
||||
#include <ntos.h>
|
||||
#include <internal/ke.h>
|
||||
@@ -445,7 +447,17 @@ PsInitializeThread(HANDLE ProcessHandle,
|
||||
Thread->Tcb.BasePriority = (CHAR)Thread->ThreadsProcess->Pcb.BasePriority;
|
||||
Thread->Tcb.Priority = Thread->Tcb.BasePriority;
|
||||
|
||||
return(STATUS_SUCCESS);
|
||||
/*
|
||||
* Local Procedure Call facility (LPC)
|
||||
*/
|
||||
KeInitializeSemaphore (& Thread->LpcReplySemaphore, 0, LONG_MAX);
|
||||
Thread->LpcReplyMessage = NULL;
|
||||
Thread->LpcReplyMessageId = 0; /* not valid */
|
||||
/* Thread->LpcReceiveMessageId = 0; */
|
||||
Thread->LpcExitThreadCalled = FALSE;
|
||||
Thread->LpcReceivedMsgIdValid = FALSE;
|
||||
|
||||
return(STATUS_SUCCESS);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user