fix incorrect address-of syntax on windows

This commit is contained in:
Andrew Kelley 2018-06-01 01:29:34 -04:00
parent 5f38a01ede
commit e29d12d821

View File

@ -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) };