wow64win: Only marshal MSGs in wow64_NtUserCallWindowsHook if needed.
commita001c0a030abff2bbcfd597c5786736ca30a6835
authorTim Clem <tclem@codeweavers.com>
Mon, 8 May 2023 21:08:13 +0000 (8 14:08 -0700)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 25 May 2023 09:03:58 +0000 (25 11:03 +0200)
treee5258e39a5542c88581fba89ac46055d16270787
parente10da7ab2e3d151c8347802600862aa608672f6f
wow64win: Only marshal MSGs in wow64_NtUserCallWindowsHook if needed.

lparam != 0 does not imply lparam_size is big enough for a MSG, so we
can end up manipulating memory past the end of the buffer.

Co-authored-by: Jacek Caban <jacek@codeweavers.com>
dlls/wow64win/user.c