winemac.drv: Don't register IME classes before the dll is initialized.

This commit is contained in:
Alexandre Julliard 2013-06-20 17:02:01 +02:00
parent f98ccb82b9
commit 410b728c7b
1 changed files with 3 additions and 3 deletions

View File

@ -164,7 +164,7 @@ static void setup_options(void)
/*********************************************************************** /***********************************************************************
* process_attach * process_attach
*/ */
static BOOL process_attach(void) static BOOL process_attach( HINSTANCE instance )
{ {
SessionAttributeBits attributes; SessionAttributeBits attributes;
OSStatus status; OSStatus status;
@ -186,6 +186,7 @@ static BOOL process_attach(void)
set_app_icon(); set_app_icon();
macdrv_clipboard_process_attach(); macdrv_clipboard_process_attach();
IME_RegisterClasses( instance );
return TRUE; return TRUE;
} }
@ -279,8 +280,7 @@ BOOL WINAPI DllMain(HINSTANCE hinst, DWORD reason, LPVOID reserved)
switch(reason) switch(reason)
{ {
case DLL_PROCESS_ATTACH: case DLL_PROCESS_ATTACH:
IME_RegisterClasses(hinst); ret = process_attach( hinst );
ret = process_attach();
break; break;
case DLL_THREAD_DETACH: case DLL_THREAD_DETACH:
thread_detach(); thread_detach();