| ... | @@ -8249,7 +8249,18 @@ fn fileReadStreamingWindows(file: File, data: []const []u8) File.Reader.Error!us | ... | @@ -8249,7 +8249,18 @@ fn fileReadStreamingWindows(file: File, data: []const []u8) File.Reader.Error!us |
| 8249 | null, // byte offset | 8249 | null, // byte offset |
| 8250 | null, // key | 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 | syscall.finish(); | 8264 | syscall.finish(); |
| 8254 | return io_status_block.Information; | 8265 | return io_status_block.Information; |
| 8255 | }, | 8266 | }, |