From 833ff146c4611897085fafb36b09c41488ffedc6 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Thu, 12 May 2016 23:00:26 +0300 Subject: [PATCH] comctl32/imagelist: Simplify setting ImageList_DragEnter() return code. Signed-off-by: Nikolay Sivov Signed-off-by: Alexandre Julliard --- dlls/comctl32/imagelist.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/dlls/comctl32/imagelist.c b/dlls/comctl32/imagelist.c index c34eb0a984a..a7301d1db7c 100644 --- a/dlls/comctl32/imagelist.c +++ b/dlls/comctl32/imagelist.c @@ -930,11 +930,7 @@ ImageList_DragEnter (HWND hwndLock, INT x, INT y) InternalDrag.y = y; /* draw the drag image and save the background */ - if (!ImageList_DragShowNolock(TRUE)) { - return FALSE; - } - - return TRUE; + return ImageList_DragShowNolock(TRUE); }