| ... | @@ -1397,6 +1397,7 @@ pub const Dir = struct { | ... | @@ -1397,6 +1397,7 @@ pub const Dir = struct { |
| 1397 | .capable_io_mode = std.io.default_mode, | 1397 | .capable_io_mode = std.io.default_mode, |
| 1398 | .intended_io_mode = flags.intended_io_mode, | 1398 | .intended_io_mode = flags.intended_io_mode, |
| 1399 | }; | 1399 | }; |
| | 1400 | errdefer file.close(); |
| 1400 | var io: w.IO_STATUS_BLOCK = undefined; | 1401 | var io: w.IO_STATUS_BLOCK = undefined; |
| 1401 | const range_off: w.LARGE_INTEGER = 0; | 1402 | const range_off: w.LARGE_INTEGER = 0; |
| 1402 | const range_len: w.LARGE_INTEGER = 1; | 1403 | const range_len: w.LARGE_INTEGER = 1; |