https://git.reactos.org/?p=reactos.git;a=commitdiff;h=1cf1892b14b53a586b45e6b7da81fa9ec57977e9

commit 1cf1892b14b53a586b45e6b7da81fa9ec57977e9
Author:     George Bișoc <[email protected]>
AuthorDate: Sat Apr 24 20:13:56 2021 +0200
Commit:     George Bișoc <[email protected]>
CommitDate: Sat Apr 24 20:13:56 2021 +0200

    [COMCTL32] Fix an incorrect returned value for ImageList_Remove
    
    Thanks goes to Kyle Katarn. Had to make a commit myself due to author's 
account being deleted.
    
    Signed-off-by: Kyle Katarn <[email protected]>
---
 dll/win32/comctl32/imagelist.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dll/win32/comctl32/imagelist.c b/dll/win32/comctl32/imagelist.c
index b97adaa90d7..78407dfdd94 100644
--- a/dll/win32/comctl32/imagelist.c
+++ b/dll/win32/comctl32/imagelist.c
@@ -4196,7 +4196,7 @@ ImageList_Remove (HIMAGELIST himl, INT i)
 {
     IImageList2* piml = IImageList2_from_impl(himl);
     if (!piml)
-        return -1;
+        return FALSE;
 
     return (piml->lpVtbl->Remove(piml, i) == S_OK) ? TRUE : FALSE;
 }

Reply via email to