Michael Stefaniuc : user32: Use IsRectEmpty() instead of open coding it.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed May 4 11:38:21 CDT 2016
Module: wine
Branch: master
Commit: 21e3de63deb163914b4547c28f92c23e9354b329
URL: http://source.winehq.org/git/wine.git/?a=commit;h=21e3de63deb163914b4547c28f92c23e9354b329
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Tue May 3 21:46:00 2016 +0200
user32: Use IsRectEmpty() instead of open coding it.
Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/user32/uitools.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/user32/uitools.c b/dlls/user32/uitools.c
index 1afb1c89..68c3c8e 100644
--- a/dlls/user32/uitools.c
+++ b/dlls/user32/uitools.c
@@ -1483,7 +1483,7 @@ INT WINAPI FrameRect( HDC hdc, const RECT *rect, HBRUSH hbrush )
HBRUSH prevBrush;
RECT r = *rect;
- if ( (r.right <= r.left) || (r.bottom <= r.top) ) return 0;
+ if (IsRectEmpty(&r)) return 0;
if (!(prevBrush = SelectObject( hdc, hbrush ))) return 0;
PatBlt( hdc, r.left, r.top, 1, r.bottom - r.top, PATCOPY );
More information about the wine-cvs
mailing list