| ... | ... | @@ -8689,7 +8689,6 @@ fn fileReadStreamingWindows(file: File, data: []const []u8) File.Reader.Error!us |
| 8689 | 8689 | return e; |
| 8690 | 8690 | }, |
| 8691 | 8691 | }; |
| 8692 | | defer alertable_syscall.finish(); |
| 8693 | 8692 | waitForApcOrAlert(); |
| 8694 | 8693 | while (@atomicLoad(windows.NTSTATUS, &io_status_block.u.Status, .acquire) == .PENDING) { |
| 8695 | 8694 | alertable_syscall.checkCancel() catch |err| switch (err) { |
| ... | ... | @@ -8700,6 +8699,7 @@ fn fileReadStreamingWindows(file: File, data: []const []u8) File.Reader.Error!us |
| 8700 | 8699 | }; |
| 8701 | 8700 | waitForApcOrAlert(); |
| 8702 | 8701 | } |
| 8702 | alertable_syscall.finish(); |
| 8703 | 8703 | }, |
| 8704 | 8704 | } else |err| return err; |
| 8705 | 8705 | return ntReadFileResult(&io_status_block); |