user32: Don't leak region on error.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com> Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
3762c294d9
commit
5fa0422227
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue