[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 <contact@kcsoftwares.com>
This commit is contained in:
George Bișoc 2021-04-24 20:13:56 +02:00
parent 48d9c07894
commit 1cf1892b14
No known key found for this signature in database
GPG key ID: 688C4FBE25D7DEF6

View file

@ -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;
}