commit e29d12d8218c6f84d4fd59b7c8672d3b38c79390 (tree)
parent 5f38a01edeaa150bef741c940311a9e15d0cd327
Author: Andrew Kelley <superjoe30@gmail.com>
Date: Fri, 1 Jun 2018 01:29:34 -0400
fix incorrect address-of syntax on windows
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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) };