mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 04:24:33 +01:00
windows: make the WaitForMultipleObjectsEx assertion inclusive
- additionally, the parameter must be nonzero: https://learn.microsoft.com/en-us/windows/win32/api/synchapi/nf-synchapi-waitformultipleobjects
This commit is contained in:
parent
66b71273a2
commit
7434accc3d
1 changed files with 1 additions and 1 deletions
|
|
@ -452,7 +452,7 @@ pub fn WaitForSingleObjectEx(handle: HANDLE, milliseconds: DWORD, alertable: boo
|
|||
}
|
||||
|
||||
pub fn WaitForMultipleObjectsEx(handles: []const HANDLE, waitAll: bool, milliseconds: DWORD, alertable: bool) !u32 {
|
||||
assert(handles.len < MAXIMUM_WAIT_OBJECTS);
|
||||
assert(handles.len > 0 and handles.len <= MAXIMUM_WAIT_OBJECTS);
|
||||
const nCount: DWORD = @as(DWORD, @intCast(handles.len));
|
||||
switch (kernel32.WaitForMultipleObjectsEx(
|
||||
nCount,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue