user32: Explicitly set last error to ERROR_SUCCESS.
Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
7fb4809347
commit
0a36078ee1
|
@ -3288,6 +3288,7 @@ static BOOL MENU_TrackMenu( HMENU hmenu, UINT wFlags, INT x, INT y,
|
|||
if( menu ) menu->bTimeToHide = FALSE;
|
||||
}
|
||||
|
||||
SetLastError( ERROR_SUCCESS );
|
||||
/* The return value is only used by TrackPopupMenu */
|
||||
if (!(wFlags & TPM_RETURNCMD)) return TRUE;
|
||||
if (executedMenuId == -1) executedMenuId = 0;
|
||||
|
|
Loading…
Reference in New Issue