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

Alexandre Julliard julliard at winehq.org
Thu Apr 7 07:36:48 CDT 2011


Module: wine
Branch: stable
Commit: 17bc2fc68d3426003ae8350edca9f9e8419ce11d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=17bc2fc68d3426003ae8350edca9f9e8419ce11d

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Jan 10 11:16:23 2011 +0100

comctl32/imagelist: Don't change destination size in ImageList_Duplicate without corresponding allocation.
(cherry picked from commit cca319d5943ca01a564335473a9ac3ee949d342d)

---

 dlls/comctl32/imagelist.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/dlls/comctl32/imagelist.c b/dlls/comctl32/imagelist.c
index 47279c9..c80236f 100644
--- a/dlls/comctl32/imagelist.c
+++ b/dlls/comctl32/imagelist.c
@@ -1519,7 +1519,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 );
     }




More information about the wine-cvs mailing list