Alexandre Julliard : comctl32/imagelist: Fix the allocated size of the has_alpha array.

Alexandre Julliard julliard at winehq.org
Mon May 17 09:39:25 CDT 2010


Module: wine
Branch: master
Commit: 3915cfbd02faabc7eac1b4ca147a663779987722
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=3915cfbd02faabc7eac1b4ca147a663779987722

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon May 17 12:42:25 2010 +0200

comctl32/imagelist: Fix the allocated size of the has_alpha array.

---

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

diff --git a/dlls/comctl32/imagelist.c b/dlls/comctl32/imagelist.c
index e8d3323..c1ea00a 100644
--- a/dlls/comctl32/imagelist.c
+++ b/dlls/comctl32/imagelist.c
@@ -324,8 +324,7 @@ IMAGELIST_InternalExpandBitmaps(HIMAGELIST himl, INT nImageCount)
 
     if (himl->has_alpha)
     {
-        char *new_alpha = HeapReAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY,
-                                       himl->has_alpha, himl->cMaxImage );
+        char *new_alpha = HeapReAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, himl->has_alpha, nNewCount );
         if (new_alpha) himl->has_alpha = new_alpha;
         else
         {




More information about the wine-cvs mailing list