From: Michael Stefaniuc Subject: winex11.drv: Use IsRectEmpty() instead of open coding it. Message-Id: <20160503194708.GC20778@redhat.com> Date: Tue, 3 May 2016 21:47:08 +0200 Signed-off-by: Michael Stefaniuc --- dlls/winex11.drv/x11drv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/winex11.drv/x11drv.h b/dlls/winex11.drv/x11drv.h index 23f4ab6..a075a00 100644 --- a/dlls/winex11.drv/x11drv.h +++ b/dlls/winex11.drv/x11drv.h @@ -134,7 +134,7 @@ static inline void reset_bounds( RECT *bounds ) static inline void add_bounds_rect( RECT *bounds, const RECT *rect ) { - if (rect->left >= rect->right || rect->top >= rect->bottom) return; + if (IsRectEmpty(rect)) return; bounds->left = min( bounds->left, rect->left ); bounds->top = min( bounds->top, rect->top ); bounds->right = max( bounds->right, rect->right ); -- 2.4.11