https://bugs.winehq.org/show_bug.cgi?id=51831
--- Comment #3 from RĂ©mi Bernon rbernon@codeweavers.com --- Yeah I stumbled upon this separately, and sent a patch to fix it (https://source.winehq.org/patches/data/216079).
The type should also be read from the current event instead of the passed event pointer, which has the previous one.