user32: Use IsRectEmpty() instead of open coding it.

Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Michael Stefaniuc 2016-05-03 21:46:00 +02:00 committed by Alexandre Julliard
parent 776eebe80b
commit 21e3de63de
1 changed files with 1 additions and 1 deletions

View File

@ -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 );