COMCTL32: Prevent listview from crashing when a null sort function is used in LVM_SORTITEMS

Mike McCormack mike at codeweavers.com
Thu Aug 12 03:55:26 CDT 2004


ChangeLog:
* Prevent listview from crashing when a null sort function is passed to 
LVM_SORTITEMS
-------------- next part --------------
Index: dlls/comctl32/listview.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/listview.c,v
retrieving revision 1.391
diff -u -r1.391 listview.c
--- dlls/comctl32/listview.c	11 Aug 2004 20:53:32 -0000	1.391
+++ dlls/comctl32/listview.c	12 Aug 2004 07:31:40 -0000
@@ -7272,6 +7272,7 @@
 
     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 */


More information about the wine-patches mailing list