diff --git a/dlls/comctl32/treeview.c b/dlls/comctl32/treeview.c index 0b118b71f55..79de8aaaf78 100644 --- a/dlls/comctl32/treeview.c +++ b/dlls/comctl32/treeview.c @@ -4259,12 +4259,9 @@ TREEVIEW_RButtonDown(TREEVIEW_INFO *infoPtr, LPARAM lParam) SetFocus(infoPtr->hwnd); if(!TREEVIEW_SendSimpleNotify(infoPtr, NM_RCLICK)) { - /* Change to screen coordinate for WM_CONTEXTMENU */ - ClientToScreen(infoPtr->hwnd, &ht.pt); - /* Send a WM_CONTEXTMENU message in response to the RBUTTONUP */ SendMessageW(infoPtr->hwndNotify, WM_CONTEXTMENU, - (WPARAM)infoPtr->hwnd, MAKELPARAM(ht.pt.x, ht.pt.y)); + (WPARAM)infoPtr->hwnd, (LPARAM)GetMessagePos()); } }