mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 07:56:59 +00:00
Initialize LPC-related fields in ETHREAD.
svn path=/trunk/; revision=8866
This commit is contained in:
parent
bcbcab94ad
commit
458909a9c0
1 changed files with 14 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue