18 Oct
2023
18 Oct
'23
6:59 p.m.
Brendan Shanks (@bshanks) commented about dlls/ntdll/unix/sync.c:
timespec.tv_nsec = (timeleft % TICKSPERSEC) * 100; - ret = semaphore_timedwait( sem, timespec ); + if (timespec.tv_sec > 0x7FFFFFFF) timeout = NULL; } - else - ret = semaphore_wait( sem );
- switch (ret) - { - case KERN_SUCCESS: return STATUS_ALERTED; - case KERN_ABORTED: continue; - case KERN_OPERATION_TIMED_OUT: return STATUS_TIMEOUT; - default: return STATUS_INVALID_HANDLE; - } + ret = kevent( entry->kq, NULL, 0, &wait_event, 1, timeout ? ×pec : NULL ); +
Blank line doesn't seem necessary here -- https://gitlab.winehq.org/wine/wine/-/merge_requests/4049#note_49187