Skip to content
Snippets Groups Projects
Commit bcb3490d authored by Rein Klazes's avatar Rein Klazes Committed by Alexandre Julliard
Browse files

GetUpdateRect can be called with a NULL rect.

parent 42d55786
Branches
Tags
No related merge requests found
......@@ -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 );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment