[PATCH v2] user32: Also remove WM_CHAR from queue when a menu gets VK_ESCAPE and add tests
Alexandre Julliard
julliard at winehq.org
Mon Jan 30 07:30:40 CST 2017
Fabian Maurer <dark.shadow4 at web.de> writes:
>> 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.
TranslateMessage will put a WM_CHAR in the queue, but there may be
another one already in there, which would then get removed.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list