msvcr100: Add support for COOPERATIVE_TIMEOUT_INFINITE timeout in critical_section.

This commit is contained in:
Piotr Caban 2023-06-08 15:34:43 +02:00 committed by Alexandre Julliard
parent 684dbfd0c7
commit 0f69396405

View file

@ -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");