Commit cca319d5 authored by Alexandre Julliard's avatar Alexandre Julliard

comctl32/imagelist: Don't change destination size in ImageList_Duplicate without…

comctl32/imagelist: Don't change destination size in ImageList_Duplicate without corresponding allocation.
parent 90a8e3f3
......@@ -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 );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment