user32: Use IsRectEmpty() instead of open coding it.
Michael Stefaniuc
mstefani at redhat.de
Tue May 3 14:46:00 CDT 2016
Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
---
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 );
--
2.4.11
More information about the wine-patches
mailing list