Fixed a bug (incorrect size in memmove) that I introduced with an
earlier patch. Tested with wordview.
This commit is contained in:
parent
3c0dbc1f01
commit
4f2300a372
|
@ -1636,7 +1636,7 @@ DPA_QuickSort (LPVOID *lpPtrs, INT l, INT r,
|
||||||
if(pfnCompare(lpPtrs[l],lpPtrs[m+1],lParam)>0)
|
if(pfnCompare(lpPtrs[l],lpPtrs[m+1],lParam)>0)
|
||||||
{
|
{
|
||||||
t = lpPtrs[m+1];
|
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;
|
lpPtrs[l] = t;
|
||||||
|
|
||||||
m++;
|
m++;
|
||||||
|
|
Loading…
Reference in New Issue