| ... | @@ -469,6 +469,7 @@ pub const WriteFileError = error{ | ... | @@ -469,6 +469,7 @@ pub const WriteFileError = error{ |
| 469 | SystemResources, | 469 | SystemResources, |
| 470 | OperationAborted, | 470 | OperationAborted, |
| 471 | BrokenPipe, | 471 | BrokenPipe, |
| | 472 | NotOpenForWriting, |
| 472 | Unexpected, | 473 | Unexpected, |
| 473 | }; | 474 | }; |
| 474 | | 475 | |
| ... | @@ -542,6 +543,7 @@ pub fn WriteFile( | ... | @@ -542,6 +543,7 @@ pub fn WriteFile( |
| 542 | .NOT_ENOUGH_QUOTA => return error.SystemResources, | 543 | .NOT_ENOUGH_QUOTA => return error.SystemResources, |
| 543 | .IO_PENDING => unreachable, | 544 | .IO_PENDING => unreachable, |
| 544 | .BROKEN_PIPE => return error.BrokenPipe, | 545 | .BROKEN_PIPE => return error.BrokenPipe, |
| | 546 | .INVALID_HANDLE => return error.NotOpenForWriting, |
| 545 | else => |err| return unexpectedError(err), | 547 | else => |err| return unexpectedError(err), |
| 546 | } | 548 | } |
| 547 | } | 549 | } |