29 Oct
2025
29 Oct
'25
9:28 p.m.
Also, do we have any tests showing that the behaviour is different for the single and multiple objects wait, wait for all and for any?
For single waits we do: https://gitlab.winehq.org/wine/wine/-/commit/46a208d6faf5668e88a98fc3a14733b... , but this does not test wait any vs wait all, but IIRC this does not matter (would still be good to have tested out though).
This would need tests for other special handles besides the current process.
All other pseudo handles apart from `NtCurrentProcess()` and `NtCurrentThread()` are non-waitable and also return `STATUS_INVALID_HANDLE` on any possible path that I tested, but I can also add tests for that. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/9305#note_120040