Commit 5cf8f2cf authored by Filip Navara's avatar Filip Navara Committed by Alexandre Julliard

Don't call SetScrollInfo with SB_BOTH bar type.

parent 8f3b7dfd
......@@ -1677,14 +1677,14 @@ void WINAPI CalcChildScroll( HWND hwnd, INT scroll )
info.nMin = childRect.left;
info.nMax = childRect.right - clientRect.right;
info.nPos = clientRect.left - childRect.left;
SetScrollInfo(hwnd, scroll, &info, TRUE);
SetScrollInfo(hwnd, SB_HORZ, &info, TRUE);
if (scroll == SB_HORZ) break;
/* fall through */
case SB_VERT:
info.nMin = childRect.top;
info.nMax = childRect.bottom - clientRect.bottom;
info.nPos = clientRect.top - childRect.top;
SetScrollInfo(hwnd, scroll, &info, TRUE);
SetScrollInfo(hwnd, SB_VERT, &info, TRUE);
break;
}
}
......
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