comctl32/imagelist: Fix the allocated size of the has_alpha array.
This commit is contained in:
parent
45fd49bab6
commit
3915cfbd02
|
@ -324,8 +324,7 @@ IMAGELIST_InternalExpandBitmaps(HIMAGELIST himl, INT nImageCount)
|
||||||
|
|
||||||
if (himl->has_alpha)
|
if (himl->has_alpha)
|
||||||
{
|
{
|
||||||
char *new_alpha = HeapReAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY,
|
char *new_alpha = HeapReAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, himl->has_alpha, nNewCount );
|
||||||
himl->has_alpha, himl->cMaxImage );
|
|
||||||
if (new_alpha) himl->has_alpha = new_alpha;
|
if (new_alpha) himl->has_alpha = new_alpha;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue