| ... | ... | @@ -1680,7 +1680,10 @@ pub fn renameatW( |
| 1680 | 1680 | ReplaceIfExists: windows.BOOLEAN, |
| 1681 | 1681 | ) RenameError!void { |
| 1682 | 1682 | const access_mask = windows.SYNCHRONIZE | windows.GENERIC_WRITE | windows.DELETE; |
| 1683 | | const src_fd = try windows.OpenFileW(old_dir_fd, old_path, null, access_mask, null, false, windows.FILE_OPEN); |
| 1683 | const src_fd = windows.OpenFileW(old_dir_fd, old_path, null, access_mask, null, false, windows.FILE_OPEN) catch |err| switch (err) { |
| 1684 | error.WouldBlock => unreachable, |
| 1685 | else => return err, |
| 1686 | }; |
| 1684 | 1687 | defer windows.CloseHandle(src_fd); |
| 1685 | 1688 | |
| 1686 | 1689 | const struct_buf_len = @sizeOf(windows.FILE_RENAME_INFORMATION) + (MAX_PATH_BYTES - 1); |