Module: wine Branch: master Commit: 0f69396405fc841839983707b3b768e1dc6ea8cd URL: https://gitlab.winehq.org/wine/wine/-/commit/0f69396405fc841839983707b3b768e...
Author: Piotr Caban piotr@codeweavers.com Date: Thu Jun 8 15:34:43 2023 +0200
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");