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

LVM_SORTITEMS.
This commit is contained in:
Mike McCormack 2004-08-12 20:01:55 +00:00 committed by Alexandre Julliard
parent 101599e902
commit a3a19355cd
1 changed files with 1 additions and 0 deletions

View File

@ -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 */