From: Jacek Caban Subject: [PATCH 4/5] ntdll: Directly use server_select in wait_suspend. Message-Id: Date: Wed, 8 Apr 2020 20:28:06 +0200 Signed-off-by: Jacek Caban --- dlls/ntdll/exception.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dlls/ntdll/exception.c b/dlls/ntdll/exception.c index 7bd7baa135..4d0ef72e10 100644 --- a/dlls/ntdll/exception.c +++ b/dlls/ntdll/exception.c @@ -111,7 +111,6 @@ static ULONG remove_vectored_handler( struct list *handler_list, VECTORED_HANDLE */ void wait_suspend( CONTEXT *context ) { - LARGE_INTEGER timeout; int saved_errno = errno; context_t server_context; DWORD flags = context->ContextFlags; @@ -127,8 +126,7 @@ void wait_suspend( CONTEXT *context ) SERVER_END_REQ; /* wait with 0 timeout, will only return once the thread is no longer suspended */ - timeout.QuadPart = 0; - server_wait( NULL, 0, SELECT_INTERRUPTIBLE, &timeout ); + server_select( NULL, 0, SELECT_INTERRUPTIBLE, 0, NULL ); /* retrieve the new context */ SERVER_START_REQ( get_suspend_context )