user32: Don't delete hrgnClip until we are done using it.

Thanks to Peter Oberndorfer for noticing this.
This commit is contained in:
Aric Stewart 2007-03-07 15:31:19 +09:00 committed by Alexandre Julliard
parent 8db7b9c7c7
commit e499a84416
1 changed files with 1 additions and 1 deletions

View File

@ -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 {