mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-01 09:21:14 +00:00
comctl32: Fix an off by one error in ImageList_Remove.
This commit is contained in:
parent
481de9d82d
commit
e0195ca4ef
1 changed files with 4 additions and 4 deletions
|
@ -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 a new issue