Jacek Caban : ntdll: Directly use server_select in wait_suspend.

Alexandre Julliard julliard at winehq.org
Mon Apr 13 15:05:56 CDT 2020


Module: wine
Branch: master
Commit: 0ab9e00ef65681cab0218616e4ce83b494a8a960
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=0ab9e00ef65681cab0218616e4ce83b494a8a960

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Fri Apr 10 01:05:38 2020 +0200

ntdll: Directly use server_select in wait_suspend.

Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 )




More information about the wine-cvs mailing list