Skip to content
Snippets Groups Projects
Commit 7e70e56b authored by Gerard Patel's avatar Gerard Patel Committed by Alexandre Julliard
Browse files

Map WM_MENUSELECT 32->16 bits for closing menu.

parent e8a3d071
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment