diff options
author | George Hazan <ghazan@miranda.im> | 2023-04-11 17:07:04 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2023-04-11 17:07:04 +0300 |
commit | 8f9292d483fcf3a10d9284512359c4562f5311eb (patch) | |
tree | 3593ca1eb6a5a4c3b2ef454fa6b4944d4b8da8c4 /protocols/EmLanProto | |
parent | 5f4f070347d20fc85b588138217aa744141e8053 (diff) |
DB::FILE_BLOB - file events' access unification
Diffstat (limited to 'protocols/EmLanProto')
-rw-r--r-- | protocols/EmLanProto/src/mlan.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/protocols/EmLanProto/src/mlan.cpp b/protocols/EmLanProto/src/mlan.cpp index 84dd998b60..535a42a7aa 100644 --- a/protocols/EmLanProto/src/mlan.cpp +++ b/protocols/EmLanProto/src/mlan.cpp @@ -907,13 +907,12 @@ void CMLan::RecvFile(CCSDATA *ccs) char *szFile = pre->szMessage + sizeof(uint32_t); char *szDesc = szFile + mir_strlen(szFile) + 1; - DBEVENTINFO dbei = {}; + DB::EventInfo dbei; dbei.szModule = MODULENAME; dbei.timestamp = pre->timestamp; dbei.flags = pre->flags & (PREF_CREATEREAD ? DBEF_READ : 0); dbei.eventType = EVENTTYPE_FILE; - dbei.cbBlob = uint32_t(sizeof(uint32_t) + mir_strlen(szFile) + mir_strlen(szDesc) + 2); - dbei.pBlob = (uint8_t*)pre->szMessage; + DB::FILE_BLOB(_A2T(szFile), _A2T(szDesc)).write(dbei); db_event_add(ccs->hContact, &dbei); } |