[WIN32SS][NTUSER] Fix ScrollWindowEx SW_SCROLLCHILDREN (#2327)

Based on the patch of I_Kill_Bugs of JIRA user. CORE-16687, CORE-12114
This commit is contained in:
Katayama Hirofumi MZ 2020-02-11 20:59:14 +09:00 committed by GitHub
parent ea8a6d6fb7
commit 9199c90328
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -385,6 +385,10 @@ IntScrollWindowEx(
rcChild = Child->rcWindow;
RECTL_vOffsetRect(&rcChild, -ClientOrigin.x, -ClientOrigin.y);
/* Adjust window positions */
RECTL_vOffsetRect(&Child->rcWindow, dx, dy);
RECTL_vOffsetRect(&Child->rcClient, dx, dy);
if (!prcScroll || RECTL_bIntersectRect(&rcDummy, &rcChild, &rcScroll))
{
UserRefObjectCo(Child, &WndRef);