aboutsummaryrefslogtreecommitdiff
path: root/zencore
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2022-06-14 15:18:47 -0700
committerGitHub <[email protected]>2022-06-14 15:18:47 -0700
commit3c6f831b8995b296e0179404e67e1d6e2187065a (patch)
tree67297329596bb3fca10a879a0dddfac9c9d8a7af /zencore
parentadded _WIN32_WINNT define to be consistent with xmake file (diff)
parentMake sure we don't try to create a ZipFS IoBuffer of zero size (diff)
downloadzen-3c6f831b8995b296e0179404e67e1d6e2187065a.tar.xz
zen-3c6f831b8995b296e0179404e67e1d6e2187065a.zip
Merge pull request #129 from EpicGames/de/better-iterate-chunksv0.1.4-pre2
Improved BlockStore::IterateChunks
Diffstat (limited to 'zencore')
-rw-r--r--zencore/iobuffer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/zencore/iobuffer.cpp b/zencore/iobuffer.cpp
index 56b05d86d..37ef57c2d 100644
--- a/zencore/iobuffer.cpp
+++ b/zencore/iobuffer.cpp
@@ -274,6 +274,8 @@ IoBufferExtendedCore::Materialize() const
const uint64_t MappedOffsetDisplacement = m_FileOffset - MapOffset;
const uint64_t MapSize = m_DataBytes + MappedOffsetDisplacement;
+ ZEN_ASSERT(MapSize > 0);
+
#if ZEN_PLATFORM_WINDOWS
NewMmapHandle = CreateFileMapping(m_FileHandle,
/* lpFileMappingAttributes */ nullptr,