| ... | ... | @@ -8245,12 +8245,15 @@ fn fileReadStreamingWindows(file: File, data: []const []u8) File.Reader.Error!us |
| 8245 | 8245 | null, // byte offset |
| 8246 | 8246 | null, // key |
| 8247 | 8247 | )) { |
| 8248 | | .SUCCESS => break :read syscall.finish(), |
| 8248 | .SUCCESS, .END_OF_FILE, .PIPE_BROKEN => break :read syscall.finish(), |
| 8249 | 8249 | .PENDING => break, |
| 8250 | 8250 | .CANCELLED => { |
| 8251 | 8251 | try syscall.checkCancel(); |
| 8252 | 8252 | continue; |
| 8253 | 8253 | }, |
| 8254 | .INVALID_DEVICE_REQUEST => return syscall.fail(error.IsDir), |
| 8255 | .LOCK_NOT_GRANTED => return syscall.fail(error.LockViolation), |
| 8256 | .ACCESS_DENIED => return syscall.fail(error.AccessDenied), |
| 8254 | 8257 | .INVALID_PARAMETER => |err| return syscall.ntstatusBug(err), // streaming read of async mode file |
| 8255 | 8258 | else => |status| return syscall.unexpectedNtstatus(status), |
| 8256 | 8259 | } |
| ... | ... | @@ -8281,6 +8284,8 @@ fn fileReadStreamingWindows(file: File, data: []const []u8) File.Reader.Error!us |
| 8281 | 8284 | |
| 8282 | 8285 | switch (io_status_block.u.Status) { |
| 8283 | 8286 | .SUCCESS, .END_OF_FILE, .PIPE_BROKEN => {}, |
| 8287 | .INVALID_DEVICE_REQUEST => return error.IsDir, |
| 8288 | .LOCK_NOT_GRANTED => return error.LockViolation, |
| 8284 | 8289 | .ACCESS_DENIED => return error.AccessDenied, |
| 8285 | 8290 | else => |status| return windows.unexpectedStatus(status), |
| 8286 | 8291 | } |