Commit 5fa04222 authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

user32: Don't leak region on error.

parent 3762c294
......@@ -1400,8 +1400,8 @@ INT WINAPI ExcludeUpdateRgn( HDC hdc, HWND hwnd )
MapWindowPoints( 0, hwnd, &pt, 1 );
OffsetRgn( update_rgn, -pt.x, -pt.y );
ret = ExtSelectClipRgn( hdc, update_rgn, RGN_DIFF );
DeleteObject( update_rgn );
}
DeleteObject( update_rgn );
return ret;
}
......
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