Commit 7d846eb1 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

comctl32/listview: Properly handle subitem hittesting outside of horizontal columns bounds.

parent 660ad066
......@@ -7323,6 +7323,14 @@ static INT LISTVIEW_HitTest(const LISTVIEW_INFO *infoPtr, LPLVHITTESTINFO lpht,
}
}
TRACE("lpht->iSubItem=%d\n", lpht->iSubItem);
/* if we're outside horizontal columns bounds there's nothing to test further */
if (lpht->iSubItem == -1)
{
lpht->iItem = -1;
lpht->flags = LVHT_NOWHERE;
return -1;
}
}
TRACE("lpht->flags=0x%x\n", lpht->flags);
......
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