authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-06-01 01:29:34-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-06-01 01:29:34-04:00
loge29d12d8218c6f84d4fd59b7c8672d3b38c79390
tree5ccfd67157be19b745c469e923ed92691670b6e9
parent5f38a01edeaa150bef741c940311a9e15d0cd327

fix incorrect address-of syntax on windows


1 files changed, 1 insertions(+), 1 deletions(-)

std/os/child_process.zig+1-1
......@@ -254,7 +254,7 @@ pub const ChildProcess = struct {
254254
255255 self.term = (SpawnError!Term)(x: {
256256 var exit_code: windows.DWORD = undefined;
257 if (windows.GetExitCodeProcess(self.handle, *exit_code) == 0) {
257 if (windows.GetExitCodeProcess(self.handle, &exit_code) == 0) {
258258 break :x Term{ .Unknown = 0 };
259259 } else {
260260 break :x Term{ .Exited = @bitCast(i32, exit_code) };