Module: wine Branch: master Commit: 302ae44d8b752ca470c3f5923a9012d04a52b6c1 URL: http://source.winehq.org/git/wine.git/?a=commit;h=302ae44d8b752ca470c3f5923a...
Author: Michael Stefaniuc mstefani@redhat.de Date: Fri Jul 29 12:23:19 2016 +0200
comctl32: Remove an always true conditional expression.
Signed-off-by: Michael Stefaniuc mstefani@redhat.de Signed-off-by: Nikolay Sivov nsivov@codeweavers.com Signed-off-by: Alexandre Julliard julliard@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,