Commit f0380e57 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

In WIN_UpdateNCRgn, do not send in WM_NCPAINT a region that is used

afterwards, but a copy of it.
parent ec133cea
...@@ -232,8 +232,14 @@ copyrgn: ...@@ -232,8 +232,14 @@ copyrgn:
if( hClip ) /* NOTE: WM_NCPAINT allows wParam to be 1 */ if( hClip ) /* NOTE: WM_NCPAINT allows wParam to be 1 */
{ {
if ( hClip == hrgnRet && hrgnRet > 1 ) {
hClip = CreateRectRgn( 0, 0, 0, 0 );
CombineRgn( hClip, hrgnRet, 0, RGN_COPY );
}
SendMessageA( wnd->hwndSelf, WM_NCPAINT, hClip, 0L ); SendMessageA( wnd->hwndSelf, WM_NCPAINT, hClip, 0L );
if( (hClip > 1)&& (hClip != hRgn) && (hClip != hrgnRet) ) DeleteObject( hClip ); if( (hClip > 1) && (hClip != hRgn) && (hClip != hrgnRet) )
DeleteObject( hClip );
/* /*
* Since all Window locks are suspended while processing the WM_NCPAINT * Since all Window locks are suspended while processing the WM_NCPAINT
* we want to make sure the window still exists before continuing. * we want to make sure the window still exists before continuing.
......
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