ntdll: Read entry point in LdrInitializeThunk.
commit06c5a9ab55751b1c66ea0847aea4d4a45d8d343c
authorAndrew Wesie <awesie@gmail.com>
Thu, 9 Feb 2017 19:11:52 +0000 (9 20:11 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 9 Feb 2017 20:37:08 +0000 (9 21:37 +0100)
tree64dfe7053fde780082c6f8bd01e66cf8270f102b
parent2f447bb49c794058e71bf5bd43a3c53147260226
ntdll: Read entry point in LdrInitializeThunk.

Overwatch overwrites the PE header contents in a TLS callback. This results in
a crash on wine, because the entry point will be incorrect in start_process.

Signed-off-by: Andrew Wesie <awesie@gmail.com>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/kernel32/process.c
dlls/ntdll/loader.c