Nikolay Sivov : comctl32/imagelist: Simplify setting ImageList_DragEnter() return code.

Alexandre Julliard julliard at wine.codeweavers.com
Sat May 14 10:07:28 CDT 2016


Module: wine
Branch: master
Commit: 833ff146c4611897085fafb36b09c41488ffedc6
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=833ff146c4611897085fafb36b09c41488ffedc6

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Thu May 12 23:00:26 2016 +0300

comctl32/imagelist: Simplify setting ImageList_DragEnter() return code.

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 c34eb0a..a7301d1 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);
 }
 
 




More information about the wine-cvs mailing list