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:
Huw Davies 2017-03-27 10:18:32 +01:00 committed by Alexandre Julliard
parent 7fb4809347
commit 0a36078ee1
1 changed files with 1 additions and 0 deletions

View File

@ -3288,6 +3288,7 @@ static BOOL MENU_TrackMenu( HMENU hmenu, UINT wFlags, INT x, INT y,
if( menu ) menu->bTimeToHide = FALSE; if( menu ) menu->bTimeToHide = FALSE;
} }
SetLastError( ERROR_SUCCESS );
/* The return value is only used by TrackPopupMenu */ /* The return value is only used by TrackPopupMenu */
if (!(wFlags & TPM_RETURNCMD)) return TRUE; if (!(wFlags & TPM_RETURNCMD)) return TRUE;
if (executedMenuId == -1) executedMenuId = 0; if (executedMenuId == -1) executedMenuId = 0;