ntdll: Compute the wait timeout only once in NTDLL_wait_for_multiple_objects.
This commit is contained in:
parent
05ef63e897
commit
30a2645ee7
|
@ -715,7 +715,9 @@ NTSTATUS NTDLL_wait_for_multiple_objects( UINT count, const HANDLE *handles, UIN
|
||||||
{
|
{
|
||||||
NTSTATUS ret;
|
NTSTATUS ret;
|
||||||
int cookie;
|
int cookie;
|
||||||
|
abs_time_t abs_timeout;
|
||||||
|
|
||||||
|
NTDLL_get_server_abstime( &abs_timeout, timeout );
|
||||||
if (timeout) flags |= SELECT_TIMEOUT;
|
if (timeout) flags |= SELECT_TIMEOUT;
|
||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
|
@ -724,7 +726,7 @@ NTSTATUS NTDLL_wait_for_multiple_objects( UINT count, const HANDLE *handles, UIN
|
||||||
req->flags = flags;
|
req->flags = flags;
|
||||||
req->cookie = &cookie;
|
req->cookie = &cookie;
|
||||||
req->signal = signal_object;
|
req->signal = signal_object;
|
||||||
NTDLL_get_server_abstime( &req->timeout, timeout );
|
req->timeout = abs_timeout;
|
||||||
wine_server_add_data( req, handles, count * sizeof(HANDLE) );
|
wine_server_add_data( req, handles, count * sizeof(HANDLE) );
|
||||||
ret = wine_server_call( req );
|
ret = wine_server_call( req );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue