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