Commit 0f693964 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcr100: Add support for COOPERATIVE_TIMEOUT_INFINITE timeout in critical_section.

parent 684dbfd0
......@@ -2590,6 +2590,11 @@ static BOOL block_context_for(Context *ctx, unsigned int timeout)
TP_TIMER *tp_timer;
FILETIME ft;
if(timeout == COOPERATIVE_TIMEOUT_INFINITE) {
call_Context_Block(ctx);
return FALSE;
}
tp_timer = CreateThreadpoolTimer(timeout_unlock, &tu, NULL);
if(!tp_timer) {
FIXME("throw exception?\n");
......
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