From cca319d5943ca01a564335473a9ac3ee949d342d Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 10 Jan 2011 11:16:23 +0100 Subject: [PATCH] comctl32/imagelist: Don't change destination size in ImageList_Duplicate without corresponding allocation. --- dlls/comctl32/imagelist.c | 1 - 1 file changed, 1 deletion(-) diff --git a/dlls/comctl32/imagelist.c b/dlls/comctl32/imagelist.c index 2e1581e7eee..ed92a52bb56 100644 --- a/dlls/comctl32/imagelist.c +++ b/dlls/comctl32/imagelist.c @@ -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 ); }