mirror of
https://github.com/reactos/wine.git
synced 2024-11-30 15:10:27 +00:00
comctl32/toolbar: Don't add NULL imagelist entries.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
06eceb3af2
commit
ece34a1319
@ -6904,6 +6904,10 @@ static HIMAGELIST TOOLBAR_InsertImageList(PIMLENTRY **pies, INT *cies, HIMAGELIS
|
||||
/* Check if the entry already exists */
|
||||
c = TOOLBAR_GetImageListEntry(*pies, *cies, id);
|
||||
|
||||
/* Don't add new entry for NULL imagelist */
|
||||
if (!c && !himl)
|
||||
return NULL;
|
||||
|
||||
/* If this is a new entry we must create it and insert into the array */
|
||||
if (!c)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user