Commit e499a844 authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

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

Thanks to Peter Oberndorfer for noticing this.
parent 8db7b9c7
...@@ -869,7 +869,6 @@ INT WINAPI ScrollWindowEx( HWND hwnd, INT dx, INT dy, ...@@ -869,7 +869,6 @@ INT WINAPI ScrollWindowEx( HWND hwnd, INT dx, INT dy,
if( !bOwnRgn) if( !bOwnRgn)
CombineRgn( hrgnWinupd, hrgnWinupd, hrgnTemp, RGN_OR ); CombineRgn( hrgnWinupd, hrgnWinupd, hrgnTemp, RGN_OR );
RedrawWindow( hwnd, NULL, hrgnTemp, rdw_flags); RedrawWindow( hwnd, NULL, hrgnTemp, rdw_flags);
DeleteObject( hrgnClip );
/* Catch the case where the scolling amount exceeds the size of the /* Catch the case where the scolling amount exceeds the size of the
* original window. This generated a second update area that is 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, ...@@ -889,6 +888,7 @@ INT WINAPI ScrollWindowEx( HWND hwnd, INT dx, INT dy,
if( !bOwnRgn) if( !bOwnRgn)
CombineRgn( hrgnWinupd, hrgnWinupd, hrgnTemp, RGN_OR ); CombineRgn( hrgnWinupd, hrgnWinupd, hrgnTemp, RGN_OR );
} }
DeleteObject( hrgnClip );
} }
DeleteObject( hrgnTemp ); DeleteObject( hrgnTemp );
} else { } else {
......
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