Commit 86b95b8c authored by Alexandre Julliard's avatar Alexandre Julliard

Revert previous change since it causes a crash in desktop mode.

parent bcb3490d
...@@ -142,7 +142,6 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpReserved) ...@@ -142,7 +142,6 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpReserved)
IMM_RegisterMessages(); IMM_RegisterMessages();
x11drv = GetModuleHandleA("x11drv.dll"); x11drv = GetModuleHandleA("x11drv.dll");
if (x11drv) pX11DRV_ForceXIMReset = (void *)GetProcAddress( x11drv, "ForceXIMReset"); if (x11drv) pX11DRV_ForceXIMReset = (void *)GetProcAddress( x11drv, "ForceXIMReset");
IMM_Register();
break; break;
case DLL_PROCESS_DETACH: case DLL_PROCESS_DETACH:
if (hwndDefault) if (hwndDefault)
...@@ -736,6 +735,7 @@ HWND WINAPI ImmGetDefaultIMEWnd(HWND hWnd) ...@@ -736,6 +735,7 @@ HWND WINAPI ImmGetDefaultIMEWnd(HWND hWnd)
{ {
static const WCHAR the_name[] = {'I','M','E','\0'}; static const WCHAR the_name[] = {'I','M','E','\0'};
IMM_Register();
hwndDefault = CreateWindowExW( WS_EX_CLIENTEDGE, WC_IMECLASSNAME, hwndDefault = CreateWindowExW( WS_EX_CLIENTEDGE, WC_IMECLASSNAME,
the_name, WS_POPUPWINDOW|WS_CAPTION, 0, 0, 120, 55, 0, 0, the_name, WS_POPUPWINDOW|WS_CAPTION, 0, 0, 120, 55, 0, 0,
hImeInst, 0); hImeInst, 0);
......
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