Skip to content
Snippets Groups Projects
Commit 3915cfbd authored by Alexandre Julliard's avatar Alexandre Julliard
Browse files

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

parent 45fd49ba
No related branches found
No related tags found
No related merge requests found
......@@ -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
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment