Commit 7e70e56b authored by Gerard Patel's avatar Gerard Patel Committed by Alexandre Julliard

Map WM_MENUSELECT 32->16 bits for closing menu.

parent e8a3d071
......@@ -1796,7 +1796,11 @@ INT WINPROC_MapMsg32ATo16( HWND hwnd, UINT msg32, WPARAM wParam32,
if(HIWORD(wParam32) & MF_POPUP)
{
UINT16 hmenu;
if((hmenu = GetSubMenu((HMENU16)*plparam, *pwparam16))) *pwparam16=hmenu;
if (((UINT)HIWORD(wParam32) != 0xFFFF) || (*plparam))
{
if((hmenu = GetSubMenu((HMENU16)*plparam, *pwparam16)))
*pwparam16=hmenu;
}
}
/* fall through */
case WM_MENUCHAR:
......
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