mirror of
https://github.com/reactos/wine.git
synced 2024-11-26 13:10:28 +00:00
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");
|
TRACE("Post image copy!\n");
|
||||||
|
|
||||||
SelectObject (hdcBmp, hbmNewImage);
|
SelectObject (hdcBmp, hbmNewImage);
|
||||||
imagelist_copy_images( himl, himl->hdcImage, hdcBmp, i,
|
imagelist_copy_images( himl, himl->hdcImage, hdcBmp, i + 1,
|
||||||
(himl->cCurImage - i - 1), i - 1 );
|
(himl->cCurImage - i), i );
|
||||||
|
|
||||||
if (himl->hbmMask) {
|
if (himl->hbmMask) {
|
||||||
SelectObject (hdcBmp, hbmNewMask);
|
SelectObject (hdcBmp, hbmNewMask);
|
||||||
imagelist_copy_images( himl, himl->hdcMask, hdcBmp, i,
|
imagelist_copy_images( himl, himl->hdcMask, hdcBmp, i + 1,
|
||||||
(himl->cCurImage - i - 1), i - 1 );
|
(himl->cCurImage - i), i );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user