diff --git a/dlls/user32/uitools.c b/dlls/user32/uitools.c index 1afb1c89963..68c3c8e7bd6 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 );