Jacek Caban : ntdll: Honour alertable argument in NtContinue.
Alexandre Julliard
julliard at winehq.org
Tue Jan 19 15:44:01 CST 2021
Module: wine
Branch: master
Commit: 46a81fa966d5049952faf8b7d5bea390f5b97769
URL: https://source.winehq.org/git/wine.git/?a=commit;h=46a81fa966d5049952faf8b7d5bea390f5b97769
Author: Jacek Caban <jacek at codeweavers.com>
Date: Mon Jan 11 20:04:33 2021 +0100
ntdll: Honour alertable argument in NtContinue.
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/ntdll/unix/server.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/dlls/ntdll/unix/server.c b/dlls/ntdll/unix/server.c
index a9608abfb73..db09d7759da 100644
--- a/dlls/ntdll/unix/server.c
+++ b/dlls/ntdll/unix/server.c
@@ -721,8 +721,11 @@ NTSTATUS WINAPI NtContinue( CONTEXT *context, BOOLEAN alertable )
user_apc_t apc;
NTSTATUS status;
- status = server_select( NULL, 0, SELECT_INTERRUPTIBLE | SELECT_ALERTABLE, 0, NULL, NULL, &apc );
- if (status == STATUS_USER_APC) invoke_apc( context, &apc );
+ 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 );
}
More information about the wine-cvs
mailing list