Commit e38b0e10 authored by Gerard Patel's avatar Gerard Patel Committed by Alexandre Julliard

Fixed window locking bug in CalcChildScroll.

parent 1441e03e
......@@ -1889,7 +1889,8 @@ void WINAPI CalcChildScroll16( HWND16 hwnd, WORD scroll )
INT vmin, vmax, hmin, hmax, vpos, hpos;
WND *pWnd, *Wnd;
if (!(Wnd = pWnd = WIN_FindWndPtr( hwnd ))) return;
if (!(pWnd = WIN_FindWndPtr( hwnd ))) return;
Wnd = WIN_FindWndPtr(hwnd);
GetClientRect( hwnd, &clientRect );
SetRectEmpty( &childRect );
......@@ -1899,6 +1900,7 @@ void WINAPI CalcChildScroll16( HWND16 hwnd, WORD scroll )
{
ShowScrollBar(hwnd, SB_BOTH, FALSE);
WIN_ReleaseWndPtr(pWnd);
WIN_ReleaseWndPtr(Wnd);
return;
}
UnionRect( &childRect, &pWnd->rectWindow, &childRect );
......
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