ntdll: qsort: Comparator must not get the same pointer.

This commit is contained in:
Stefan Oberhumer 2010-10-05 00:03:05 +02:00 committed by Alexandre Julliard
parent 38769ddfe9
commit c8fb366eb0
1 changed files with 1 additions and 1 deletions

View File

@ -272,7 +272,7 @@ NTDLL_mergesort( void *arr, void *barr, size_t elemsize, int(__cdecl *compar)(co
/* i=left; j=right; */
for (k=left; i<=m && j>m; k++) {
if (compar(X(barr,i),X(barr,j))<=0) {
if (i==j || compar(X(barr,i),X(barr,j))<=0) {
memcpy(X(arr,k),X(barr,i),elemsize);
i++;
} else {