Fixed loop with WM_SYSCHAR.

This commit is contained in:
Pierre Mageau 1999-10-23 20:05:04 +00:00 committed by Alexandre Julliard
parent 0c1dea0841
commit 891d4d22a7
2 changed files with 1 additions and 5 deletions

View file

@ -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 */

View file

@ -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;