std.process.Child: fix function signature

This commit is contained in:
Vojtech Antosik 2024-08-23 21:20:25 +02:00
parent c9b7ad7efa
commit 58cc61dbf2
No known key found for this signature in database
GPG Key ID: 1B4CFBC7E5EE59A7

View File

@ -46,7 +46,7 @@ pub fn main() !void {
proc_buffer = try gpa.alloc(windows.DWORD, proc_count); proc_buffer = try gpa.alloc(windows.DWORD, proc_count);
defer gpa.free(proc_buffer); defer gpa.free(proc_buffer);
proc_count = GetConsoleProcessList(proc_buffer); proc_count = GetConsoleProcessList(proc_buffer.ptr, @min(proc_buffer.len, std.math.maxInt(windows.DWORD)));
if (proc_count == 0) return error.ConsoleProcessListFailed; if (proc_count == 0) return error.ConsoleProcessListFailed;
if (proc_count <= proc_buffer.len) { if (proc_count <= proc_buffer.len) {