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

This commit is contained in:
Alexandre Julliard 2010-05-17 12:42:25 +02:00
parent 45fd49bab6
commit 3915cfbd02
1 changed files with 1 additions and 2 deletions

View File

@ -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
{