Merge branch 'strangebug-fix/std-dbg-warn-hangs-windows'

closes #5407
This commit is contained in:
Andrew Kelley 2020-08-19 20:53:32 -07:00
commit 91de5c212f

View File

@ -469,6 +469,7 @@ pub const WriteFileError = error{
SystemResources,
OperationAborted,
BrokenPipe,
NotOpenForWriting,
Unexpected,
};
@ -542,6 +543,7 @@ pub fn WriteFile(
.NOT_ENOUGH_QUOTA => return error.SystemResources,
.IO_PENDING => unreachable,
.BROKEN_PIPE => return error.BrokenPipe,
.INVALID_HANDLE => return error.NotOpenForWriting,
else => |err| return unexpectedError(err),
}
}