Commit 9d35bb82 authored by Ulrich Weigand's avatar Ulrich Weigand Committed by Alexandre Julliard

Fixed invalid window refcount handling in RDW_Paint().

parent c90243b8
......@@ -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);
}
}
......
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