Module: wine Branch: master Commit: ece34a1319f47cb7cd242c0f95d57cd1d35ae8f4 URL: http://source.winehq.org/git/wine.git/?a=commit;h=ece34a1319f47cb7cd242c0f95...
Author: Nikolay Sivov nsivov@codeweavers.com Date: Wed May 31 05:56:38 2017 +0300
comctl32/toolbar: Don't add NULL imagelist entries.
Signed-off-by: Nikolay Sivov nsivov@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/comctl32/toolbar.c | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/dlls/comctl32/toolbar.c b/dlls/comctl32/toolbar.c index c57707b..4da3008 100644 --- a/dlls/comctl32/toolbar.c +++ b/dlls/comctl32/toolbar.c @@ -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) {