From 4f2300a372d7ac10c80d1db420d704b5c03e017b Mon Sep 17 00:00:00 2001 From: Mike McCormack Date: Wed, 6 Sep 2000 19:43:38 +0000 Subject: [PATCH] Fixed a bug (incorrect size in memmove) that I introduced with an earlier patch. Tested with wordview. --- dlls/comctl32/comctl32undoc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/comctl32/comctl32undoc.c b/dlls/comctl32/comctl32undoc.c index 670339e71a4..365ef60e4a8 100644 --- a/dlls/comctl32/comctl32undoc.c +++ b/dlls/comctl32/comctl32undoc.c @@ -1636,7 +1636,7 @@ DPA_QuickSort (LPVOID *lpPtrs, INT l, INT r, if(pfnCompare(lpPtrs[l],lpPtrs[m+1],lParam)>0) { 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; m++;