diff options
| author | Stefan Boberg <[email protected]> | 2021-09-17 23:04:11 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-09-17 23:04:11 +0200 |
| commit | de65c608c2cefc4be771c11b5bb7132a84fa46eb (patch) | |
| tree | 1877cca3fde74f7bc34ffbc03ea692b16165c996 /zenutil/zenserverprocess.cpp | |
| parent | Merge branch 'main' of https://github.com/EpicGames/zen (diff) | |
| download | zen-de65c608c2cefc4be771c11b5bb7132a84fa46eb.tar.xz zen-de65c608c2cefc4be771c11b5bb7132a84fa46eb.zip | |
Added better handling for read-only mode
Diffstat (limited to 'zenutil/zenserverprocess.cpp')
| -rw-r--r-- | zenutil/zenserverprocess.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/zenutil/zenserverprocess.cpp b/zenutil/zenserverprocess.cpp index c504ce7da..c6bee1ed7 100644 --- a/zenutil/zenserverprocess.cpp +++ b/zenutil/zenserverprocess.cpp @@ -129,7 +129,8 @@ ZenServerState::Initialize() zen::ThrowLastError("Could not map view of Zen server state"); } - m_Data = reinterpret_cast<ZenServerEntry*>(pBuf); + m_Data = reinterpret_cast<ZenServerEntry*>(pBuf); + m_IsReadOnly = false; } bool @@ -221,6 +222,8 @@ ZenServerState::Sweep() return; } + ZEN_ASSERT(m_IsReadOnly == false); + for (int i = 0; i < m_MaxEntryCount; ++i) { ZenServerEntry& Entry = m_Data[i]; |