Fixed a bug (incorrect size in memmove) that I introduced with an

earlier patch. Tested with wordview.
This commit is contained in:
Mike McCormack 2000-09-06 19:43:38 +00:00 committed by Alexandre Julliard
parent 3c0dbc1f01
commit 4f2300a372

View file

@ -1636,7 +1636,7 @@ DPA_QuickSort (LPVOID *lpPtrs, INT l, INT r,
if(pfnCompare(lpPtrs[l],lpPtrs[m+1],lParam)>0)
{
t = lpPtrs[m+1];
memmove(&lpPtrs[l+1],&lpPtrs[l],m-l+1);
memmove(&lpPtrs[l+1],&lpPtrs[l],(m-l+1)*sizeof lpPtrs[l]);
lpPtrs[l] = t;
m++;