Roman Pišl : comctl32: Fix return type of ImageList_WriteEx.
Alexandre Julliard
julliard at winehq.org
Mon Jan 3 15:55:03 CST 2022
Module: wine
Branch: master
Commit: dd7d344f292d860eb2b9a4512bb9b69a682856ab
URL: https://source.winehq.org/git/wine.git/?a=commit;h=dd7d344f292d860eb2b9a4512bb9b69a682856ab
Author: Roman Pišl <rpisl at seznam.cz>
Date: Sun Jan 2 22:27:05 2022 +0100
comctl32: Fix return type of ImageList_WriteEx.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52323
Signed-off-by: Roman Pišl <rpisl at seznam.cz>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/comctl32/imagelist.c | 4 ++--
include/commctrl.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/comctl32/imagelist.c b/dlls/comctl32/imagelist.c
index 8da8beec1e0..155d4b2a956 100644
--- a/dlls/comctl32/imagelist.c
+++ b/dlls/comctl32/imagelist.c
@@ -3061,10 +3061,10 @@ failed:
/*************************************************************************
* ImageList_WriteEx [COMCTL32.@]
*/
-BOOL WINAPI ImageList_WriteEx(HIMAGELIST himl, DWORD flags, IStream *pstm)
+HRESULT WINAPI ImageList_WriteEx(HIMAGELIST himl, DWORD flags, IStream *pstm)
{
FIXME("%p %08x %p: semi-stub\n", himl, flags, pstm);
- return ImageList_Write(himl, pstm);
+ return ImageList_Write(himl, pstm) ? S_OK : E_FAIL;
}
/*************************************************************************
diff --git a/include/commctrl.h b/include/commctrl.h
index 025eb328c32..c6d9dd32928 100644
--- a/include/commctrl.h
+++ b/include/commctrl.h
@@ -602,7 +602,7 @@ BOOL WINAPI ImageList_SetOverlayImage(HIMAGELIST,INT,INT);
#ifdef __IStream_INTERFACE_DEFINED__
HIMAGELIST WINAPI ImageList_Read(LPSTREAM);
BOOL WINAPI ImageList_Write(HIMAGELIST,IStream*);
-BOOL WINAPI ImageList_WriteEx(HIMAGELIST,DWORD,IStream*);
+HRESULT WINAPI ImageList_WriteEx(HIMAGELIST,DWORD,IStream*);
#endif
#define ImageList_AddIcon(himl,hicon) ImageList_ReplaceIcon(himl,-1,hicon)
More information about the wine-cvs
mailing list