Commit 9ceda483 authored by Alexandre Julliard's avatar Alexandre Julliard

user32: Load the 32-bit user.exe module wrapper from the 32-bit side.

parent 40a264b0
...@@ -387,6 +387,17 @@ static void free_clipboard_formats(void) ...@@ -387,6 +387,17 @@ static void free_clipboard_formats(void)
} }
} }
/**********************************************************************
* DllMain
*/
BOOL WINAPI DllMain( HINSTANCE inst, DWORD reason, LPVOID reserved )
{
if (reason == DLL_PROCESS_ATTACH) LoadLibrary16( "user.exe" );
return TRUE;
}
/********************************************************************** /**********************************************************************
* InitApp (USER.5) * InitApp (USER.5)
*/ */
......
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
#include "controls.h" #include "controls.h"
#include "user_private.h" #include "user_private.h"
#include "win.h" #include "win.h"
#include "wine/winbase16.h"
#include "wine/unicode.h" #include "wine/unicode.h"
#include "wine/debug.h" #include "wine/debug.h"
...@@ -271,8 +270,6 @@ static void winstation_init(void) ...@@ -271,8 +270,6 @@ static void winstation_init(void)
*/ */
static BOOL process_attach(void) static BOOL process_attach(void)
{ {
LoadLibrary16( "user.exe" );
winstation_init(); winstation_init();
/* Initialize system colors and metrics */ /* Initialize system colors and metrics */
...@@ -281,6 +278,8 @@ static BOOL process_attach(void) ...@@ -281,6 +278,8 @@ static BOOL process_attach(void)
/* Setup palette function pointers */ /* Setup palette function pointers */
palette_init(); palette_init();
LoadLibraryA( "user.exe16" );
/* Initialize built-in window classes */ /* Initialize built-in window classes */
CLASS_RegisterBuiltinClasses(); CLASS_RegisterBuiltinClasses();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment