user32: Make sure that passed window handle is scroll control before accessing wExtra...
commitb8ef42c9fd165da5c31d8f68f2ae39b77e9101f5
authorJacek Caban <jacek@codeweavers.com>
Thu, 20 Sep 2018 14:48:55 +0000 (20 16:48 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 20 Sep 2018 16:33:12 +0000 (20 18:33 +0200)
tree586bb77d13ca2105a8b76c0d7bc4f0dc44a4f363
parentd3da2400e6faa25fb64aab1112c8e886a5d2cbd5
user32: Make sure that passed window handle is scroll control before accessing wExtra in SCROLL_GetInternalInfo.

Fixes memory corruption in Office 2016.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/user32/scroll.c
dlls/user32/tests/scroll.c