diff --git a/controls/menu.c b/controls/menu.c index 1f97aaee4b2..8caf80af354 100644 --- a/controls/menu.c +++ b/controls/menu.c @@ -2861,7 +2861,7 @@ void MENU_TrackKbdMenuBar( WND* wndPtr, UINT wParam, INT vkey) /* find window that has a menu */ - while( wndPtr->dwStyle & WS_CHILD && !(wndPtr->dwStyle & WS_SYSMENU) ) + while( wndPtr->dwStyle & WS_CHILD) if( !(wndPtr = wndPtr->parent) ) return; /* check if we have to track a system menu */ diff --git a/windows/mdi.c b/windows/mdi.c index c647daf749e..ca1bbbbd6fd 100644 --- a/windows/mdi.c +++ b/windows/mdi.c @@ -1611,8 +1611,6 @@ LRESULT WINAPI DefMDIChildProc16( HWND16 hwnd, UINT16 message, case WM_MENUCHAR: /* MDI children don't have menu bars */ - PostMessage16( clientWnd->parent->hwndSelf, WM_SYSCOMMAND, - (WPARAM16)SC_KEYMENU, (LPARAM)wParam); retvalue = 0x00010000L; goto END; @@ -1689,8 +1687,6 @@ LRESULT WINAPI DefMDIChildProcA( HWND hwnd, UINT message, case WM_MENUCHAR: /* MDI children don't have menu bars */ - PostMessage16( clientWnd->parent->hwndSelf, WM_SYSCOMMAND, - (WPARAM16)SC_KEYMENU, (LPARAM)LOWORD(wParam) ); retvalue = 0x00010000L; goto END;