27 Jan
2025
27 Jan
'25
3:38 p.m.
Paul Gofman (@gofman) commented about dlls/ntdll/unix/sync.c:
when = now.QuadPart - when; }
- /* Note that we yield after establishing the desired timeout */ - NtYieldExecution(); - if (!when) return STATUS_SUCCESS; + /* Note that we yield after establishing the desired timeout, but + we only care about the result of the yield for zero timeouts */ + yield_result = NtYieldExecution();
here 'status' works the same I think, no need to keep special named yield_result. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/7169#note_92934