mirror of
https://github.com/reactos/wine.git
synced 2025-03-01 09:16:00 +00:00
winex11.drv: Only initialize static variables once per process.
This commit is contained in:
parent
87fbc7a3a8
commit
d7eb2262b0
@ -430,17 +430,20 @@ XIM X11DRV_SetupXIM(Display *display, const char *input_style)
|
||||
ximStyleCallback = ximStyle;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
wine_tsx11_unlock();
|
||||
|
||||
LoadImmDll();
|
||||
|
||||
if (pImmCreateContext)
|
||||
if(!hImmDll)
|
||||
{
|
||||
root_context = pImmCreateContext();
|
||||
if (pImmAssociateContext)
|
||||
pImmAssociateContext(0,root_context);
|
||||
LoadImmDll();
|
||||
|
||||
if (pImmCreateContext)
|
||||
{
|
||||
root_context = pImmCreateContext();
|
||||
if (pImmAssociateContext)
|
||||
pImmAssociateContext(0,root_context);
|
||||
}
|
||||
}
|
||||
|
||||
return xim;
|
||||
|
Loading…
x
Reference in New Issue
Block a user