Commit 6a3ca3ca authored by Stefan Oberhumer's avatar Stefan Oberhumer Committed by Alexandre Julliard

ntdll: Fix possible overflow computing middle in NTDLL_mergesort().

parent c8fb366e
......@@ -260,7 +260,7 @@ NTDLL_mergesort( void *arr, void *barr, size_t elemsize, int(__cdecl *compar)(co
{
if(right>left) {
size_t i, j, k, m;
m=(right+left)/2;
m=left+(right-left)/2;
NTDLL_mergesort( arr, barr, elemsize, compar, left, m);
NTDLL_mergesort( arr, barr, elemsize, compar, m+1, right);
......
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