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:
Nikolay Sivov 2017-05-31 05:56:38 +03:00 committed by Alexandre Julliard
parent 06eceb3af2
commit ece34a1319

View File

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