Commit 3ff06f61 authored by Sylvain St.Germain's avatar Sylvain St.Germain Committed by Alexandre Julliard

Fix problem in DPA_QuickSort where the sort order was inverted.

parent 5394258a
...@@ -1305,8 +1305,8 @@ DPA_QuickSort (LPVOID *lpPtrs, INT l, INT r, ...@@ -1305,8 +1305,8 @@ DPA_QuickSort (LPVOID *lpPtrs, INT l, INT r,
j = r; j = r;
v = lpPtrs[(int)(l+r)/2]; v = lpPtrs[(int)(l+r)/2];
do { do {
while ((pfnCompare)(lpPtrs[i], v, lParam) < 0) i++; while ((pfnCompare)(lpPtrs[i], v, lParam) > 0) i++;
while ((pfnCompare)(lpPtrs[j], v, lParam) > 0) j--; while ((pfnCompare)(lpPtrs[j], v, lParam) < 0) j--;
if (i <= j) if (i <= j)
{ {
t = lpPtrs[i]; t = lpPtrs[i];
......
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