https://bugs.winehq.org/show_bug.cgi?id=38353
--- Comment #3 from Nikolay Sivov bunglehead@gmail.com --- (In reply to Sebastian Lackner from comment #2)
According to the information on the internet the keystate should be ignored when a NULL pointer is passed.
Could you please test the following patch? https://github.com/wine-compholio/wine-staging/blob/master/patches/winex11- ToUnicodeEx/0001-winex11-Allow-NULL-pointer-as-keystate-in-X11DRV_ToU.patch
That's questionable - ToUnicode() keystate argument is indeed annotated as optional in PSDK, while ToUnicodeEx() is not. Wine always forwards to ToUnicodeEx(). So yes, only tests will tell the truth.