From 0f69396405fc841839983707b3b768e1dc6ea8cd Mon Sep 17 00:00:00 2001 From: Piotr Caban Date: Thu, 8 Jun 2023 15:34:43 +0200 Subject: [PATCH] msvcr100: Add support for COOPERATIVE_TIMEOUT_INFINITE timeout in critical_section. --- dlls/msvcrt/concurrency.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dlls/msvcrt/concurrency.c b/dlls/msvcrt/concurrency.c index 190d1f31c31..560159ee00d 100644 --- a/dlls/msvcrt/concurrency.c +++ b/dlls/msvcrt/concurrency.c @@ -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");