diff options
author | George Hazan <george.hazan@gmail.com> | 2014-02-08 18:34:04 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-02-08 18:34:04 +0000 |
commit | 2e1d75739e0852a85e53fc3709cee64a6db22fd3 (patch) | |
tree | afa970219805ed252b1396360759f4a2ab862074 /plugins/Db3x_mmap/src/dbsettings.cpp | |
parent | 4c8d19f8daa2f9b9692d5995226439b2001ad92f (diff) |
forgotten to apply a method
git-svn-id: http://svn.miranda-ng.org/main/trunk@8068 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Db3x_mmap/src/dbsettings.cpp')
-rw-r--r-- | plugins/Db3x_mmap/src/dbsettings.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/Db3x_mmap/src/dbsettings.cpp b/plugins/Db3x_mmap/src/dbsettings.cpp index fed42bf395..4c3f8e4b93 100644 --- a/plugins/Db3x_mmap/src/dbsettings.cpp +++ b/plugins/Db3x_mmap/src/dbsettings.cpp @@ -376,10 +376,6 @@ STDMETHODIMP_(BOOL) CDb3Mmap::WriteContactSetting(MCONTACT contactID, DBCONTACTW return 1;
}
- DBCachedContact *cc = m_cache->GetCachedContact(contactID);
- if (cc == NULL)
- return 1;
-
// used for notifications
DBCONTACTWRITESETTING dbcwNotif = *dbcws;
if (dbcwNotif.value.type == DBVT_WCHAR) {
@@ -471,7 +467,7 @@ LBL_WriteString: log1(" write database as %s", printVariant(&dbcwWork.value));
DWORD ofsModuleName = GetModuleNameOfs(dbcwWork.szModule);
- DWORD ofsBlobPtr, ofsContact = (contactID == 0) ? m_dbHeader.ofsUser : cc->dwDriverData;
+ DWORD ofsBlobPtr, ofsContact = GetContactOffset(contactID);
DBContact dbc = *(DBContact*)DBRead(ofsContact, sizeof(DBContact), NULL);
if (dbc.signature != DBCONTACT_SIGNATURE)
return 1;
|