https://bugs.winehq.org/show_bug.cgi?id=52327
Bug ID: 52327 Summary: Wrong WM_CONTEXTMENU default message processing Product: Wine-staging Version: 7.0-rc3 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: yal@csoftcom.com CC: leslie_alistair@hotmail.com, z.figura12@gmail.com Distribution: ---
wine_master\dlls\user32\defwnd.c:323
wParam must point to _current_ child window hwnd when default process this message.
https://docs.microsoft.com/en-us/windows/win32/menurc/wm-contextmenu
case WM_CONTEXTMENU: if (GetWindowLongW( hwnd, GWL_STYLE ) & WS_CHILD) SendMessageW( GetParent(hwnd), msg, wParam, lParam );<=wParam must be this hwnd else
--------------------------------------------------------------
case WM_CONTEXTMENU: if (GetWindowLongW( hwnd, GWL_STYLE ) & WS_CHILD) SendMessageW( GetParent(hwnd), msg, (WPARAM)hwnd, lParam ); else