Commit 443a5dbd authored by Alexandre Julliard's avatar Alexandre Julliard

ntdll: Make sure that critical section waits are not interrupted.

parent e3247ecc
...@@ -231,7 +231,7 @@ static inline NTSTATUS wait_semaphore( RTL_CRITICAL_SECTION *crit, int timeout ) ...@@ -231,7 +231,7 @@ static inline NTSTATUS wait_semaphore( RTL_CRITICAL_SECTION *crit, int timeout )
LARGE_INTEGER time; LARGE_INTEGER time;
time.QuadPart = timeout * (LONGLONG)-10000000; time.QuadPart = timeout * (LONGLONG)-10000000;
ret = NtWaitForSingleObject( sem, FALSE, &time ); ret = NTDLL_wait_for_multiple_objects( 1, &sem, 0, &time, 0 );
} }
return ret; return ret;
} }
......
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