Commit a3a19355 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

Prevent listview from crashing when a null sort function is passed to

LVM_SORTITEMS.
parent 101599e9
......@@ -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 */
......
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