diff options
Diffstat (limited to 'src/modules/clist/clui.cpp')
-rw-r--r-- | src/modules/clist/clui.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/modules/clist/clui.cpp b/src/modules/clist/clui.cpp index c330fdc95f..50a3b3f8d6 100644 --- a/src/modules/clist/clui.cpp +++ b/src/modules/clist/clui.cpp @@ -921,9 +921,7 @@ LRESULT CALLBACK fnContactListWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM case WM_CONTEXTMENU:
{
// x/y might be -1 if it was generated by a kb click
- POINT pt;
- pt.x = (short) LOWORD(lParam);
- pt.y = (short) HIWORD(lParam);
+ POINT pt = { GET_X_LPARAM(lParam), GET_Y_LPARAM(lParam) };
RECT rc;
GetWindowRect(cli.hwndContactTree, &rc);
|