comctl32/imagelist: Don't change destination size in ImageList_Duplicate without corresponding allocation.

This commit is contained in:
Alexandre Julliard 2011-01-10 11:16:23 +01:00
parent 90a8e3f37f
commit cca319d594
1 changed files with 0 additions and 1 deletions

View File

@ -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 );
}