Commit 21e3de63 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

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

parent 776eebe8
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment