Commit e29d12d821

Andrew Kelley <superjoe30@gmail.com>
2018-06-01 07:29:34
fix incorrect address-of syntax on windows
1 parent 5f38a01
Changed files (1)
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) };