Skip to content
Snippets Groups Projects
Commit d76c5ad8 authored by Huw D. M. Davies's avatar Huw D. M. Davies Committed by Michael Stefaniuc
Browse files

user32: Explicitly set last error to ERROR_SUCCESS.


Signed-off-by: default avatarHuw Davies <huw@codeweavers.com>
Signed-off-by: default avatarAlexandre Julliard <julliard@winehq.org>
(cherry picked from commit 0a36078e)
Signed-off-by: default avatarMichael Stefaniuc <mstefani@winehq.org>
parent f2561f39
No related branches found
Tags
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment