mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Setup ConsoleLocks for Event handler
svn path=/trunk/; revision=5598
This commit is contained in:
parent
55aa0bc5a5
commit
0d9433ca45
1 changed files with 4 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: dllmain.c,v 1.27 2003/03/05 22:51:48 ekohl Exp $
|
/* $Id: dllmain.c,v 1.28 2003/08/16 06:19:15 jimtabor Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS system libraries
|
* PROJECT: ReactOS system libraries
|
||||||
|
@ -33,6 +33,7 @@ DllMain(HANDLE hInst,
|
||||||
|
|
||||||
/* Critical section for various kernel32 data structures */
|
/* Critical section for various kernel32 data structures */
|
||||||
CRITICAL_SECTION DllLock;
|
CRITICAL_SECTION DllLock;
|
||||||
|
CRITICAL_SECTION ConsoleLock;
|
||||||
|
|
||||||
/* FUNCTIONS *****************************************************************/
|
/* FUNCTIONS *****************************************************************/
|
||||||
|
|
||||||
|
@ -128,6 +129,7 @@ DllMain(HANDLE hDll,
|
||||||
|
|
||||||
/* Initialize the DLL critical section */
|
/* Initialize the DLL critical section */
|
||||||
RtlInitializeCriticalSection(&DllLock);
|
RtlInitializeCriticalSection(&DllLock);
|
||||||
|
RtlInitializeCriticalSection(&ConsoleLock);
|
||||||
|
|
||||||
/* Insert more dll attach stuff here! */
|
/* Insert more dll attach stuff here! */
|
||||||
|
|
||||||
|
@ -141,6 +143,7 @@ DllMain(HANDLE hDll,
|
||||||
/* Insert more dll detach stuff here! */
|
/* Insert more dll detach stuff here! */
|
||||||
|
|
||||||
/* Delete DLL critical section */
|
/* Delete DLL critical section */
|
||||||
|
RtlDeleteCriticalSection (&ConsoleLock);
|
||||||
RtlDeleteCriticalSection (&DllLock);
|
RtlDeleteCriticalSection (&DllLock);
|
||||||
|
|
||||||
/* Close object base directory */
|
/* Close object base directory */
|
||||||
|
|
Loading…
Reference in a new issue