31 Oct
2025
31 Oct
'25
1:20 a.m.
Paul Gofman (@gofman) commented about dlls/ntdll/unix/sync.c:
TRACE( "}, timeout %s\n", debugstr_timeout(timeout) ); }
+ /* Reject pseudo-handles up front. These are not valid for multi-object waits. */ + for (i = 0; i < count; i++) + if (is_pseudo_handle( handles[i] )) + return STATUS_INVALID_HANDLE;
we use to always put loop body in '{' '}' (each on separate line). while 'return STATUS_INVALID_HANDLE;' can go into the same 'if' line (well, at least in ntdll / kernelbase :). -- https://gitlab.winehq.org/wine/wine/-/merge_requests/9305#note_120233