From e29d12d8218c6f84d4fd59b7c8672d3b38c79390 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Fri, 1 Jun 2018 01:29:34 -0400 Subject: [PATCH] fix incorrect address-of syntax on windows --- std/os/child_process.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/std/os/child_process.zig b/std/os/child_process.zig index 30a2fd1408..0e80ae09c1 100644 --- a/std/os/child_process.zig +++ b/std/os/child_process.zig @@ -254,7 +254,7 @@ pub const ChildProcess = struct { self.term = (SpawnError!Term)(x: { var exit_code: windows.DWORD = undefined; - if (windows.GetExitCodeProcess(self.handle, *exit_code) == 0) { + if (windows.GetExitCodeProcess(self.handle, &exit_code) == 0) { break :x Term{ .Unknown = 0 }; } else { break :x Term{ .Exited = @bitCast(i32, exit_code) };