From 2614e0ee9120cecf1d5dd2ce6dfa27172cddb7f0 Mon Sep 17 00:00:00 2001 From: Mike McCormack Date: Tue, 14 Nov 2006 16:34:46 +0900 Subject: [PATCH] comctl32: When removing an image, move the remaining images one forward, not one backwards. --- dlls/comctl32/imagelist.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/comctl32/imagelist.c b/dlls/comctl32/imagelist.c index e9970e01ff..b626584942 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 ); } } -- 2.32.0.93.g670b81a890