imm32: Prevent deadlock on unload.
commit5be2a01ce69c19fa89c0dea0165ffe185c69e326
authorFabian Maurer <dark.shadow4@web.de>
Sun, 20 Nov 2022 00:04:49 +0000 (20 01:04 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 23 Nov 2022 10:03:55 +0000 (23 11:03 +0100)
tree9d0029b271d380722bdd87a3491fda2aa04c910c
parent131aa5135ba9f6aaab3a705f8010a3070ef4b604
imm32: Prevent deadlock on unload.

ole32 is delay loaded, which can cause race conditions against
krnl386.exe when unloading.
This is because imm32 tries to get the loader lock while holding the win16 mutex,
and kernel386 does the opposite.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52511
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
dlls/imm32/imm.c