diff options
Diffstat (limited to 'plugins/Db3x_mmap')
-rw-r--r-- | plugins/Db3x_mmap/src/dbmodulechain.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Db3x_mmap/src/dbmodulechain.cpp b/plugins/Db3x_mmap/src/dbmodulechain.cpp index 359cf626c3..ab0f788006 100644 --- a/plugins/Db3x_mmap/src/dbmodulechain.cpp +++ b/plugins/Db3x_mmap/src/dbmodulechain.cpp @@ -96,9 +96,9 @@ DWORD CDb3Mmap::GetModuleNameOfs(const char *szName) dbmn.cbName = nameLen;
dbmn.ofsNext = m_dbHeader.ofsModuleNames;
m_dbHeader.ofsModuleNames = ofsNew;
- DBWrite(0, &m_dbHeader, sizeof(m_dbHeader));
DBWrite(ofsNew, &dbmn, offsetof(struct DBModuleName, name));
DBWrite(ofsNew + offsetof(struct DBModuleName, name), (PVOID)szName, nameLen);
+ DBWrite(0, &m_dbHeader, sizeof(m_dbHeader));
DBFlush(0);
// add to cache
|