[PATCH v2] user32: Also remove WM_CHAR from queue when a menu gets VK_ESCAPE and add tests

Fabian Maurer dark.shadow4 at web.de
Mon Jan 30 07:25:51 CST 2017

> It would be cleaner to avoid TranslateMessage instead of removing the
> message (possibly getting the wrong one).

Sorry, I don't really see the problem. TranslateMessage should always generate 
a WM_CHAR, how could we get a wrong message? Shouldn't be possible, except for 
a bug in TranslateMessage, or I'm missing something.

I could check for message/wParam to skip TranslateMessage, but I found it 
cleaner to put it into the handler for VK_ESCAPE.

Fabian Maurer

More information about the wine-devel mailing list