From 2e1d75739e0852a85e53fc3709cee64a6db22fd3 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 8 Feb 2014 18:34:04 +0000 Subject: forgotten to apply a method git-svn-id: http://svn.miranda-ng.org/main/trunk@8068 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Db3x_mmap/src/dbsettings.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'plugins/Db3x_mmap/src') 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; -- cgit v1.2.3