Signed-off-by: Aaro Altonen a.altonen@hotmail.com --- dlls/kernelbase/kernelbase.h | 1 + dlls/kernelbase/main.c | 2 ++ 2 files changed, 3 insertions(+)
diff --git a/dlls/kernelbase/kernelbase.h b/dlls/kernelbase/kernelbase.h index e0ab06de5b..8805bf7546 100644 --- a/dlls/kernelbase/kernelbase.h +++ b/dlls/kernelbase/kernelbase.h @@ -34,6 +34,7 @@ extern const WCHAR system_dir[] DECLSPEC_HIDDEN;
static const BOOL is_win64 = (sizeof(void *) > sizeof(int)); extern BOOL is_wow64 DECLSPEC_HIDDEN; +extern HMODULE KERNELBASE_hModule DECLSPEC_HIDDEN;
extern HANDLE open_console( BOOL output, DWORD access, SECURITY_ATTRIBUTES *sa, DWORD creation ) DECLSPEC_HIDDEN;
diff --git a/dlls/kernelbase/main.c b/dlls/kernelbase/main.c index 9aa6473994..821f457bac 100644 --- a/dlls/kernelbase/main.c +++ b/dlls/kernelbase/main.c @@ -35,6 +35,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(kernelbase);
BOOL is_wow64 = FALSE; +HMODULE KERNELBASE_hModule = 0;
/*********************************************************************** * DllMain @@ -43,6 +44,7 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved ) { if (reason == DLL_PROCESS_ATTACH) { + KERNELBASE_hModule = hinst; DisableThreadLibraryCalls( hinst ); IsWow64Process( GetCurrentProcess(), &is_wow64 ); init_locale();