save modlue handle

svn path=/trunk/; revision=9890
This commit is contained in:
Gunnar Dalsnes 2004-06-26 20:07:40 +00:00
parent 2859278f6e
commit def9bd7817
2 changed files with 4 additions and 1 deletions

View file

@ -37,6 +37,7 @@ DWORD
extern BOOL bIsFileApiAnsi; extern BOOL bIsFileApiAnsi;
extern HANDLE hProcessHeap; extern HANDLE hProcessHeap;
extern HANDLE hBaseDir; extern HANDLE hBaseDir;
extern HMODULE hCurrentModule;
extern CRITICAL_SECTION DllLock; extern CRITICAL_SECTION DllLock;

View file

@ -1,4 +1,4 @@
/* $Id: dllmain.c,v 1.34 2004/02/22 17:30:32 chorns Exp $ /* $Id: dllmain.c,v 1.35 2004/06/26 20:07:40 gdalsnes 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
@ -23,6 +23,7 @@ extern UNICODE_STRING SystemDirectory;
extern UNICODE_STRING WindowsDirectory; extern UNICODE_STRING WindowsDirectory;
HANDLE hProcessHeap = NULL; HANDLE hProcessHeap = NULL;
HMODULE hCurrentModule = NULL;
HANDLE hBaseDir = NULL; HANDLE hBaseDir = NULL;
static BOOL DllInitialized = FALSE; static BOOL DllInitialized = FALSE;
@ -117,6 +118,7 @@ DllMain(HANDLE hDll,
} }
hProcessHeap = RtlGetProcessHeap(); hProcessHeap = RtlGetProcessHeap();
hCurrentModule = hDll;
/* /*
* Initialize WindowsDirectory and SystemDirectory * Initialize WindowsDirectory and SystemDirectory