Commit 0a36078e authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

user32: Explicitly set last error to ERROR_SUCCESS.

parent 7fb48093
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment