Commit 30a2645e authored by Alexandre Julliard's avatar Alexandre Julliard

ntdll: Compute the wait timeout only once in NTDLL_wait_for_multiple_objects.

parent 05ef63e8
......@@ -715,7 +715,9 @@ NTSTATUS NTDLL_wait_for_multiple_objects( UINT count, const HANDLE *handles, UIN
{
NTSTATUS ret;
int cookie;
abs_time_t abs_timeout;
NTDLL_get_server_abstime( &abs_timeout, timeout );
if (timeout) flags |= SELECT_TIMEOUT;
for (;;)
{
......@@ -724,7 +726,7 @@ NTSTATUS NTDLL_wait_for_multiple_objects( UINT count, const HANDLE *handles, UIN
req->flags = flags;
req->cookie = &cookie;
req->signal = signal_object;
NTDLL_get_server_abstime( &req->timeout, timeout );
req->timeout = abs_timeout;
wine_server_add_data( req, handles, count * sizeof(HANDLE) );
ret = wine_server_call( req );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment