Commit 4f2300a3 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

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

earlier patch. Tested with wordview.
parent 3c0dbc1f
...@@ -1636,7 +1636,7 @@ DPA_QuickSort (LPVOID *lpPtrs, INT l, INT r, ...@@ -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++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment