Skip to content

Commit

Permalink
Fix issue #155 file_handle::extents on Windows does not trim the retu…
Browse files Browse the repository at this point in the history
…rned list correctly
  • Loading branch information
ned14 committed Jan 13, 2025
1 parent a3f87ab commit 5256014
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/llfio/v2.0/detail/impl/windows/file_handle.ipp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* A handle to a file
(C) 2015-2021 Niall Douglas <http://www.nedproductions.biz/> (16 commits)
(C) 2015-2024 Niall Douglas <http://www.nedproductions.biz/> (16 commits)
File Created: Dec 2015
Expand Down Expand Up @@ -398,6 +398,7 @@ result<std::vector<file_handle::extent_pair>> file_handle::extents() const noexc
return win32_error();
}
}
ret.resize(bytesout / sizeof(FILE_ALLOCATED_RANGE_BUFFER));
return ret;
}
catch(...)
Expand Down

0 comments on commit 5256014

Please sign in to comment.