https://bugs.winehq.org/show_bug.cgi?id=38153
Piotr Caban piotr.caban@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1
--- Comment #6 from Piotr Caban piotr.caban@gmail.com --- This bug is caused by order of DLL_THREAD_DETACH events. When thread finishes it unloads winemac.drv, then user32.dll and next imm32.dll.
While winemac.drv is detached it destroys the thread data. Later when imm32 is detached it calls GetKeyboardLayout that causes the macdrv error.
I don't know yet how to fix it.