From bcb3490d3ca5932c82e700bdc0443bc1243af753 Mon Sep 17 00:00:00 2001 From: Rein Klazes Date: Wed, 8 Dec 2004 19:43:45 +0000 Subject: [PATCH] GetUpdateRect can be called with a NULL rect. --- dlls/user/painting.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/user/painting.c b/dlls/user/painting.c index de22b6f5412..3aeee06227c 100644 --- a/dlls/user/painting.c +++ b/dlls/user/painting.c @@ -534,12 +534,12 @@ BOOL WINAPI GetUpdateRect( HWND hwnd, LPRECT rect, BOOL erase ) if (!(update_rgn = send_ncpaint( hwnd, NULL, &flags ))) return FALSE; - GetRgnBox( update_rgn, rect ); + if (rect) GetRgnBox( update_rgn, rect ); send_erase( hwnd, flags, update_rgn, &dummy, &hdc ); if (hdc) { - DPtoLP( hdc, (LPPOINT)rect, 2 ); + if (rect) DPtoLP( hdc, (LPPOINT)rect, 2 ); ReleaseDC( hwnd, hdc ); } else DeleteObject( update_rgn );