ntdll: Honour alertable argument in NtContinue.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2021-01-11 20:04:33 +01:00 committed by Alexandre Julliard
parent 37e00a8743
commit 46a81fa966
1 changed files with 5 additions and 2 deletions

View File

@ -721,8 +721,11 @@ NTSTATUS WINAPI NtContinue( CONTEXT *context, BOOLEAN alertable )
user_apc_t apc;
NTSTATUS status;
if (alertable)
{
status = server_select( NULL, 0, SELECT_INTERRUPTIBLE | SELECT_ALERTABLE, 0, NULL, NULL, &apc );
if (status == STATUS_USER_APC) invoke_apc( context, &apc );
}
return NtSetContextThread( GetCurrentThread(), context );
}