Prevent listview from crashing when a null sort function is passed to
LVM_SORTITEMS.
This commit is contained in:
parent
101599e902
commit
a3a19355cd
|
@ -7272,6 +7272,7 @@ static BOOL LISTVIEW_SortItems(LISTVIEW_INFO *infoPtr, PFNLVCOMPARE pfnCompare,
|
|||
|
||||
if (infoPtr->dwStyle & LVS_OWNERDATA) return FALSE;
|
||||
|
||||
if (!pfnCompare) return FALSE;
|
||||
if (!infoPtr->hdpaItems) return FALSE;
|
||||
|
||||
/* if there are 0 or 1 items, there is no need to sort */
|
||||
|
|
Loading…
Reference in New Issue