Module: wine Branch: master Commit: e499a84416528e5c854be3f280a80688edf8fe83 URL: http://source.winehq.org/git/wine.git/?a=commit;h=e499a84416528e5c854be3f280...
Author: Aric Stewart aric@codeweavers.com Date: Wed Mar 7 15:31:19 2007 +0900
user32: Don't delete hrgnClip until we are done using it.
Thanks to Peter Oberndorfer for noticing this.
---
dlls/user32/painting.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/user32/painting.c b/dlls/user32/painting.c index 5c70b2a..c361610 100644 --- a/dlls/user32/painting.c +++ b/dlls/user32/painting.c @@ -869,7 +869,6 @@ INT WINAPI ScrollWindowEx( HWND hwnd, INT dx, INT dy, if( !bOwnRgn) CombineRgn( hrgnWinupd, hrgnWinupd, hrgnTemp, RGN_OR ); RedrawWindow( hwnd, NULL, hrgnTemp, rdw_flags); - DeleteObject( hrgnClip );
/* Catch the case where the scolling amount exceeds the size of the * original window. This generated a second update area that is the @@ -889,6 +888,7 @@ INT WINAPI ScrollWindowEx( HWND hwnd, INT dx, INT dy, if( !bOwnRgn) CombineRgn( hrgnWinupd, hrgnWinupd, hrgnTemp, RGN_OR ); } + DeleteObject( hrgnClip ); } DeleteObject( hrgnTemp ); } else {