[PATCH] user32: Make sure that passed window handle is scroll control before accessing wExtra in SCROLL_GetInternalInfo.

Jacek Caban jacek at codeweavers.com
Wed Sep 12 07:52:42 CDT 2018


Fixes memory corruption in Office 2016.

Signed-off-by: Jacek Caban <jacek at codeweavers.com>
---

I'm not sure a new window flag is the best way to handle it. I did it
the same way as it's done for MDI client.

 dlls/user32/scroll.c       |  7 ++++++-
 dlls/user32/tests/scroll.c | 21 +++++++++++++++++++++
 dlls/user32/win.h          |  1 +
 3 files changed, 28 insertions(+), 1 deletion(-)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-user32-Make-sure-that-passed-window-handle-is-scroll-.diff
Type: text/x-patch
Size: 3479 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20180912/a14c062a/attachment.bin>


More information about the wine-devel mailing list