Huw Davies : user32: Explicitly set last error to ERROR_SUCCESS.
Alexandre Julliard
julliard at winehq.org
Fri Oct 20 07:19:59 CDT 2017
Module: wine
Branch: stable
Commit: d76c5ad8b4a5244bca0016f9f43ae87e52672adc
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d76c5ad8b4a5244bca0016f9f43ae87e52672adc
Author: Huw Davies <huw at codeweavers.com>
Date: Mon Mar 27 10:18:32 2017 +0100
user32: Explicitly set last error to ERROR_SUCCESS.
Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit 0a36078ee1016053d746e77d1f636b018c537ff8)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
dlls/user32/menu.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dlls/user32/menu.c b/dlls/user32/menu.c
index 827bee7..93b39b4 100644
--- a/dlls/user32/menu.c
+++ b/dlls/user32/menu.c
@@ -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;
More information about the wine-cvs
mailing list