Michael Stefaniuc : comctl32: Use SetRectEmty() instead of open coding it.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Mar 3 11:39:44 CST 2016
Module: wine
Branch: master
Commit: d49201138d7f4740b1d0cc0190a572d7d8637091
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d49201138d7f4740b1d0cc0190a572d7d8637091
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Thu Mar 3 09:58:40 2016 +0100
comctl32: Use SetRectEmty() instead of open coding it.
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/listview.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c
index 419a823..b467b36 100644
--- a/dlls/comctl32/listview.c
+++ b/dlls/comctl32/listview.c
@@ -10061,7 +10061,7 @@ static LRESULT LISTVIEW_KillFocus(LISTVIEW_INFO *infoPtr)
LISTVIEW_InvalidateRect(infoPtr, &infoPtr->marqueeRect);
ReleaseCapture();
- SetRect(&infoPtr->marqueeRect, 0, 0, 0, 0);
+ SetRectEmpty(&infoPtr->marqueeRect);
infoPtr->bMarqueeSelect = FALSE;
infoPtr->bScrolling = FALSE;
@@ -10330,8 +10330,8 @@ static LRESULT LISTVIEW_LButtonUp(LISTVIEW_INFO *infoPtr, WORD wKey, INT x, INT
ReleaseCapture();
}
- SetRect(&infoPtr->marqueeRect, 0, 0, 0, 0);
- SetRect(&infoPtr->marqueeDrawRect, 0, 0, 0, 0);
+ SetRectEmpty(&infoPtr->marqueeRect);
+ SetRectEmpty(&infoPtr->marqueeDrawRect);
infoPtr->bDragging = FALSE;
infoPtr->bMarqueeSelect = FALSE;
More information about the wine-cvs
mailing list