mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 11:43:31 +00:00
Fixed invalid window refcount handling in RDW_Paint().
This commit is contained in:
parent
c90243b861
commit
9d35bb8295
1 changed files with 2 additions and 0 deletions
|
@ -596,6 +596,7 @@ static HRGN RDW_Paint( WND* wndPtr, HRGN hrgn, UINT flags, UINT ex )
|
|||
|
||||
if( (list = WIN_BuildWinArray( wndPtr, 0, NULL )) )
|
||||
{
|
||||
wndPtr = NULL;
|
||||
for (ppWnd = list; *ppWnd; ppWnd++)
|
||||
{
|
||||
WIN_UpdateWndPtr(&wndPtr,*ppWnd);
|
||||
|
@ -604,6 +605,7 @@ static HRGN RDW_Paint( WND* wndPtr, HRGN hrgn, UINT flags, UINT ex )
|
|||
(wndPtr->hrgnUpdate || (wndPtr->flags & WIN_INTERNAL_PAINT)) )
|
||||
hrgn = RDW_Paint( wndPtr, hrgn, flags, ex );
|
||||
}
|
||||
WIN_ReleaseWndPtr(wndPtr);
|
||||
WIN_ReleaseWinArray(list);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue