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 /plugins/IEView/src | |
parent | 5f4f070347d20fc85b588138217aa744141e8053 (diff) |
DB::FILE_BLOB - file events' access unification
Diffstat (limited to 'plugins/IEView/src')
-rw-r--r-- | plugins/IEView/src/HTMLBuilder.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/IEView/src/HTMLBuilder.cpp b/plugins/IEView/src/HTMLBuilder.cpp index c853a9b97e..aeab02c14f 100644 --- a/plugins/IEView/src/HTMLBuilder.cpp +++ b/plugins/IEView/src/HTMLBuilder.cpp @@ -238,10 +238,8 @@ void HTMLBuilder::appendEventOld(IEView *view, IEVIEWEVENT *event) eventData->iType = IEED_EVENT_STATUSCHANGE;
}
else if (dbei.eventType == EVENTTYPE_FILE) {
- // blob is: sequenceid(uint32_t),filename(ASCIIZ),description(ASCIIZ)
- char* filename = ((char *)dbei.pBlob) + sizeof(uint32_t);
- char* descr = filename + mir_strlen(filename) + 1;
- eventData->szText.w = DbEvent_GetString(&dbei, filename);
+ DB::FILE_BLOB blob(dbei);
+ eventData->szText.w = mir_wstrdup(blob.getName());
/*if (*descr != '\0') {
CMStringW tmp(FORMAT, L"%s (%s)", eventData->szText.w, ptrW(DbEvent_GetString(&dbei, descr)).get());
mir_free((void*)eventData->szText.w);
|