comctl32: Fix an off by one error in ImageList_Remove.

This commit is contained in:
Dmitry Timoshkov 2007-04-23 20:39:00 +09:00 committed by Alexandre Julliard
parent 481de9d82d
commit e0195ca4ef
1 changed files with 4 additions and 4 deletions

View File

@ -2126,13 +2126,13 @@ ImageList_Remove (HIMAGELIST himl, INT i)
TRACE("Post image copy!\n");
SelectObject (hdcBmp, hbmNewImage);
imagelist_copy_images( himl, himl->hdcImage, hdcBmp, i,
(himl->cCurImage - i - 1), i - 1 );
imagelist_copy_images( himl, himl->hdcImage, hdcBmp, i + 1,
(himl->cCurImage - i), i );
if (himl->hbmMask) {
SelectObject (hdcBmp, hbmNewMask);
imagelist_copy_images( himl, himl->hdcMask, hdcBmp, i,
(himl->cCurImage - i - 1), i - 1 );
imagelist_copy_images( himl, himl->hdcMask, hdcBmp, i + 1,
(himl->cCurImage - i), i );
}
}