| ... | @@ -452,7 +452,7 @@ pub fn WaitForSingleObjectEx(handle: HANDLE, milliseconds: DWORD, alertable: boo | ... | @@ -452,7 +452,7 @@ pub fn WaitForSingleObjectEx(handle: HANDLE, milliseconds: DWORD, alertable: boo |
| 452 | } | 452 | } |
| 453 | | 453 | |
| 454 | pub fn WaitForMultipleObjectsEx(handles: []const HANDLE, waitAll: bool, milliseconds: DWORD, alertable: bool) !u32 { | 454 | pub fn WaitForMultipleObjectsEx(handles: []const HANDLE, waitAll: bool, milliseconds: DWORD, alertable: bool) !u32 { |
| 455 | assert(handles.len < MAXIMUM_WAIT_OBJECTS); | 455 | assert(handles.len > 0 and handles.len <= MAXIMUM_WAIT_OBJECTS); |
| 456 | const nCount: DWORD = @as(DWORD, @intCast(handles.len)); | 456 | const nCount: DWORD = @as(DWORD, @intCast(handles.len)); |
| 457 | switch (kernel32.WaitForMultipleObjectsEx( | 457 | switch (kernel32.WaitForMultipleObjectsEx( |
| 458 | nCount, | 458 | nCount, |