Andrey Turkin <andrey.turkin(a)gmail.com> writes:
> ---
> dlls/ntdll/loader.c | 3 +++
> dlls/ntdll/ntdll.spec | 2 +-
> dlls/ntdll/sync.c | 16 ++++++++++++++++
> 3 files changed, 20 insertions(+), 1 deletion(-)
>
> diff --git a/dlls/ntdll/loader.c b/dlls/ntdll/loader.c
> index b3abad0..1eaa123 100644
> --- a/dlls/ntdll/loader.c
> +++ b/dlls/ntdll/loader.c
> @@ -2747,6 +2747,9 @@ void WINAPI LdrInitializeThunk( void *kernel_start, ULONG_PTR unknown2,
>
> virtual_release_address_space();
> virtual_clear_thread_stack();
> +
> + NtTestAlert();
> +
> wine_switch_to_stack( start_process, kernel_start, NtCurrentTeb()->Tib.StackBase );
This would have to run on the thread stack. Also please try to add some
tests.
--
Alexandre Julliard
julliard(a)winehq.org