mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 13:37:42 -05:00
fix: Build on MSVC, properly handle empty files
This commit is contained in:
2
lib/external/libwolv
vendored
2
lib/external/libwolv
vendored
Submodule lib/external/libwolv updated: afc2810c91...295a879f82
@@ -281,6 +281,7 @@ namespace hex::plugin::builtin {
|
||||
m_data.resize(startSize + ChunkSize);
|
||||
auto result = m_file.readBuffer(m_data.data() + startSize, ChunkSize);
|
||||
if (result <= 0) {
|
||||
m_data.resize(startSize);
|
||||
break;
|
||||
} else if (result < ChunkSize) {
|
||||
m_data.resize(startSize + result);
|
||||
|
||||
Reference in New Issue
Block a user