Michael Stefaniuc : comctl32: Remove an always true conditional expression.
Alexandre Julliard
julliard at winehq.org
Fri Jul 29 10:17:08 CDT 2016
Module: wine
Branch: master
Commit: 302ae44d8b752ca470c3f5923a9012d04a52b6c1
URL: http://source.winehq.org/git/wine.git/?a=commit;h=302ae44d8b752ca470c3f5923a9012d04a52b6c1
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Fri Jul 29 12:23:19 2016 +0200
comctl32: Remove an always true conditional expression.
Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/comctl32/imagelist.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/dlls/comctl32/imagelist.c b/dlls/comctl32/imagelist.c
index 58a7b67..9811da3 100644
--- a/dlls/comctl32/imagelist.c
+++ b/dlls/comctl32/imagelist.c
@@ -3469,7 +3469,9 @@ static HRESULT WINAPI ImageListImpl_GetImageRect(IImageList2 *iface, int i,
if (!ImageList_GetImageInfo(imgl, i, &info))
return E_FAIL;
- return CopyRect(prc, &info.rcImage) ? S_OK : E_FAIL;
+ *prc = info.rcImage;
+
+ return S_OK;
}
static HRESULT WINAPI ImageListImpl_GetIconSize(IImageList2 *iface, int *cx,
More information about the wine-cvs
mailing list