[Bug 52327] New: Wrong WM_CONTEXTMENU default message processing
WineHQ Bugzilla
wine-bugs at winehq.org
Mon Jan 3 09:30:53 CST 2022
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 at winehq.org
Reporter: yal at csoftcom.com
CC: leslie_alistair at hotmail.com, z.figura12 at 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
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
More information about the wine-bugs
mailing list