http://bugs.winehq.org/show_bug.cgi?id=35361
--- Comment #30 from Stefan Dösinger stefan@codeweavers.com --- The "bad" context is set by another process (GameOverlayUI.exe) than it is read (hl2.exe, or whatever the game is). This can't work with the current code.
I guess this either needs proper handles or tests that show that setting an imm context on a window owned by another process is not valid.