Does access out of array in DPA_QuickSort
Uwe Bonnes
bon at elektron.ikp.physik.tu-darmstadt.de
Sat May 25 12:53:47 CDT 2002
Changelog:
dlls/comctl32/comctl32undoc.c: DPA_QuickSort
Don't give NULL pointers to the Compare function
--
Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Free Software: If you contribute nothing, expect nothing
--
Index: wine/dlls/comctl32/comctl32undoc.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/comctl32undoc.c,v
retrieving revision 1.63
diff -u -r1.63 comctl32undoc.c
--- wine/dlls/comctl32/comctl32undoc.c 16 May 2002 18:58:47 -0000 1.63
+++ wine/dlls/comctl32/comctl32undoc.c 25 May 2002 17:50:13 -0000
@@ -2112,7 +2112,7 @@
/* join the two sides */
while( (l<=m) && (m<r) )
{
- if(pfnCompare(lpPtrs[l],lpPtrs[m+1],lParam)>0)
+ if(lpPtrs[l] && lpPtrs[m+1] && pfnCompare(lpPtrs[l],lpPtrs[m+1],lParam)>0)
{
t = lpPtrs[m+1];
memmove(&lpPtrs[l+1],&lpPtrs[l],(m-l+1)*sizeof lpPtrs[l]);
More information about the wine-patches
mailing list