| ... | ... | @@ -8249,7 +8249,18 @@ fn fileReadStreamingWindows(file: File, data: []const []u8) File.Reader.Error!us |
| 8249 | 8249 | null, // byte offset |
| 8250 | 8250 | null, // key |
| 8251 | 8251 | )) { |
| 8252 | | .SUCCESS, .END_OF_FILE, .PIPE_BROKEN => { |
| 8252 | .SUCCESS => { |
| 8253 | // Only END_OF_FILE is the true end. |
| 8254 | if (io_status_block.Information == 0) { |
| 8255 | try syscall.checkCancel(); |
| 8256 | continue; |
| 8257 | } else { |
| 8258 | syscall.finish(); |
| 8259 | io_status_block.u.Status = .SUCCESS; |
| 8260 | return io_status_block.Information; |
| 8261 | } |
| 8262 | }, |
| 8263 | .END_OF_FILE, .PIPE_BROKEN => { |
| 8253 | 8264 | syscall.finish(); |
| 8254 | 8265 | return io_status_block.Information; |
| 8255 | 8266 | }, |