comctl32: Fix an off by one error in ImageList_Remove.
This commit is contained in:
parent
481de9d82d
commit
e0195ca4ef
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue