GetUpdateRect can be called with a NULL rect.

This commit is contained in:
Rein Klazes 2004-12-08 19:43:45 +00:00 committed by Alexandre Julliard
parent 42d55786b9
commit bcb3490d3c
1 changed files with 2 additions and 2 deletions

View File

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