Commit 777508a2 authored by Gerard Patel's avatar Gerard Patel Committed by Alexandre Julliard

Values returned from PtInRect and LB_ITEMFROMPOINT are reversed.

parent 809abaab
...@@ -2257,7 +2257,7 @@ static inline LRESULT WINAPI ListBoxWndProc_locked( WND* wnd, UINT msg, ...@@ -2257,7 +2257,7 @@ static inline LRESULT WINAPI ListBoxWndProc_locked( WND* wnd, UINT msg,
rect.bottom = descr->height; rect.bottom = descr->height;
return MAKELONG( LISTBOX_GetItemFromPoint(wnd, descr, pt.x, pt.y), return MAKELONG( LISTBOX_GetItemFromPoint(wnd, descr, pt.x, pt.y),
PtInRect( &rect, pt ) ); !PtInRect( &rect, pt ) );
} }
case LB_SETCARETINDEX16: case LB_SETCARETINDEX16:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment