mirror of
https://github.com/ziglang/zig.git
synced 2024-11-24 13:20:14 +00:00
std.process.Child: fix function signature
This commit is contained in:
parent
c9b7ad7efa
commit
58cc61dbf2
@ -46,7 +46,7 @@ pub fn main() !void {
|
||||
proc_buffer = try gpa.alloc(windows.DWORD, proc_count);
|
||||
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 <= proc_buffer.len) {
|
||||
|
Loading…
Reference in New Issue
Block a user