Commit 4affd018 authored by Krzysztof Foltman's avatar Krzysztof Foltman Committed by Alexandre Julliard

WM_CANCELMODE resets menu flag in the default window procedure.

parent 95e527b0
......@@ -591,6 +591,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();
if (GetCapture() == hwnd) ReleaseCapture();
break;
......
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