Skip to content

Commit

Permalink
fix(Vfs): fix Windows read in issues
Browse files Browse the repository at this point in the history
  • Loading branch information
lmichaelis committed Jun 29, 2024
1 parent dc26aae commit 616182a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Vfs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ namespace zenkit {
auto& mem = _m_data_mapped.emplace_back(host);
this->mount_disk(mem.data(), mem.size(), overwrite);
#else
std::ifstream stream {host, std::ios::ate};
std::ifstream stream {host, std::ios::in | std::ios::ate | std::ios::bin};
auto size = stream.tellg();
stream.seekg(0);

Expand Down

0 comments on commit 616182a

Please sign in to comment.