[go: nahoru, domu]

Skip to content

Commit

Permalink
windows: clean up if get_integrity_information fails
Browse files Browse the repository at this point in the history
  • Loading branch information
nicokoch committed Apr 3, 2019
1 parent c87a3cb commit b020188
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sys/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ pub fn reflink(from: &Path, to: &Path) -> io::Result<()> {
if src_is_sparse {
try_cleanup!(dest.set_sparse(), to);
}
let src_integrity_info = src.get_integrity_information()?;

let src_integrity_info = try_cleanup!(src.get_integrity_information(), to);
let cluster_size = src_integrity_info.ClusterSizeInBytes as i64;
if cluster_size != 0 {
// Cluster size must either be 4K or 64K (restricted by ReFS)
Expand Down

0 comments on commit b020188

Please sign in to comment.