From 616182ac151f6f2e47811110c297fee7b3446326 Mon Sep 17 00:00:00 2001 From: Luis Michaelis Date: Sat, 29 Jun 2024 06:30:07 +0200 Subject: [PATCH] fix(Vfs): fix Windows read in issues --- src/Vfs.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Vfs.cc b/src/Vfs.cc index 6070ada7..4b2ef679 100644 --- a/src/Vfs.cc +++ b/src/Vfs.cc @@ -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);