[NTUser] Fix Strings and Format to Hooks
authorJames Tabor <james.tabor@reactos.org>
Fri, 3 Apr 2020 08:58:29 +0000 (03:58 -0500)
committerJames Tabor <james.tabor@reactos.org>
Fri, 3 Apr 2020 08:58:29 +0000 (03:58 -0500)
commit568b6d0558d047df1826d7438448432643d7fe5c
tree908021b209b50375e66f58fc094c575ec3ff6cfc
parent61a54aef9ec885b9bad61adbca66d9a7f0fcc3d3
[NTUser] Fix Strings and Format to Hooks

Allocate heap instead of data segment to be used for callbacks on user side.
Move and correct initial hook call out setup. Use it in more than one hook call.

This fixes issues with strings out of alignment and use of kernel pointers.

See CORE-13907 and CORE-16769. KsStudio still needs retested.

Small wow update.
win32ss/user/ntuser/callback.c
win32ss/user/ntuser/callback.h
win32ss/user/ntuser/message.c
win32ss/user/ntuser/window.c
win32ss/user/user32/windows/hook.c