Mike McCormack : comctl32: When removing an image, move the remaining images one forward, not one backwards.
Module: wine Branch: master Commit: 2614e0ee9120cecf1d5dd2ce6dfa27172cddb7f0 URL: http://source.winehq.org/git/wine.git/?a=commit;h=2614e0ee9120cecf1d5dd2ce6d... Author: Mike McCormack <mike(a)codeweavers.com> Date: Tue Nov 14 16:34:46 2006 +0900 comctl32: When removing an image, move the remaining images one forward, not one backwards. --- dlls/comctl32/imagelist.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/comctl32/imagelist.c b/dlls/comctl32/imagelist.c index e9970e0..b626584 100644 --- a/dlls/comctl32/imagelist.c +++ b/dlls/comctl32/imagelist.c @@ -2123,12 +2123,12 @@ ImageList_Remove (HIMAGELIST himl, INT i SelectObject (hdcBmp, hbmNewImage); imagelist_copy_images( himl, himl->hdcImage, hdcBmp, i, - (himl->cCurImage - i - 1), i + 1 ); + (himl->cCurImage - i - 1), i - 1 ); if (himl->hbmMask) { SelectObject (hdcBmp, hbmNewMask); imagelist_copy_images( himl, himl->hdcMask, hdcBmp, i, - (himl->cCurImage - i - 1), i + 1 ); + (himl->cCurImage - i - 1), i - 1 ); } }
participants (1)
-
Alexandre Julliard