Change the order of DispatchMessage and message removal.

This commit is contained in:
Jose Alonso 2005-04-19 09:47:02 +00:00 committed by Alexandre Julliard
parent c194b2e853
commit 0e21f376da
1 changed files with 2 additions and 0 deletions
dlls/user

View File

@ -2866,7 +2866,9 @@ static BOOL MENU_TrackMenu( HMENU hmenu, UINT wFlags, INT x, INT y,
}
else
{
PeekMessageW( &msg, 0, msg.message, msg.message, PM_REMOVE );
DispatchMessageW( &msg );
continue;
}
if (!fEndMenu) fRemove = TRUE;