user32: The default WM_CANCELMODE handler needs to call EndMenu() also in the case of a child window

olympia at skydreams.org olympia at skydreams.org
Sun Nov 9 08:07:00 CST 2008


Changelog:
user32: The default WM_CANCELMODE handler needs to call EndMenu() also in
the case of a child window. With the previous condition, Chessbase
 applications never closed their application menus and several would open
at the same time

Best regards,

Nicholai Benalal (olympia at skydreams.org)


diff --git a/dlls/user32/defwnd.c b/dlls/user32/defwnd.c
index c31956c..916c7cf 100644
--- a/dlls/user32/defwnd.c
+++ b/dlls/user32/defwnd.c
@@ -618,7 +618,7 @@ static LRESULT DEFWND_DefWinProc( HWND hwnd, UINT msg,
WPARAM wParam, LPARAM lPa

     case WM_CANCELMODE:
         iMenuSysKey = 0;
-        if (!(GetWindowLongW( hwnd, GWL_STYLE ) & WS_CHILD)) EndMenu();
+        EndMenu();
         if (GetCapture() == hwnd) ReleaseCapture();
         break;





More information about the wine-patches mailing list