Commit bcb3490d authored by Rein Klazes's avatar Rein Klazes Committed by Alexandre Julliard

GetUpdateRect can be called with a NULL rect.

parent 42d55786
......@@ -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 );
......
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