comctl32/imagelist: Don't change destination size in ImageList_Duplicate without corresponding allocation.
This commit is contained in:
parent
90a8e3f37f
commit
cca319d594
|
@ -1521,7 +1521,6 @@ ImageList_Duplicate (HIMAGELIST himlSrc)
|
|||
himlSrc->hdcMask, 0, 0, SRCCOPY);
|
||||
|
||||
himlDst->cCurImage = himlSrc->cCurImage;
|
||||
himlDst->cMaxImage = himlSrc->cMaxImage;
|
||||
if (himlSrc->has_alpha && himlDst->has_alpha)
|
||||
memcpy( himlDst->has_alpha, himlSrc->has_alpha, himlDst->cCurImage );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue