mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 08:49:15 +00:00
Fixed loop with WM_SYSCHAR.
This commit is contained in:
parent
0c1dea0841
commit
891d4d22a7
2 changed files with 1 additions and 5 deletions
|
@ -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 */
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue