diff options
author | George Hazan <ghazan@miranda.im> | 2021-01-18 21:15:51 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-01-18 21:15:51 +0300 |
commit | 35780da54a30840b50313ebf6ca2a0b7367d6c49 (patch) | |
tree | 3eb66fe2e3a7654544a74499344eeb66a13d46b0 /protocols/NewsAggregator | |
parent | 6436b0320228f42b696c8298ef30f92439af9872 (diff) |
fixes #2700 (Scriver: при открытии окна через попап отображается лишь одно сообщение)
Diffstat (limited to 'protocols/NewsAggregator')
-rw-r--r-- | protocols/NewsAggregator/Src/CheckFeed.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/protocols/NewsAggregator/Src/CheckFeed.cpp b/protocols/NewsAggregator/Src/CheckFeed.cpp index 87282451f4..eab3be7bb3 100644 --- a/protocols/NewsAggregator/Src/CheckFeed.cpp +++ b/protocols/NewsAggregator/Src/CheckFeed.cpp @@ -161,7 +161,9 @@ static void XmlToMsg(MCONTACT hContact, CMStringW &title, CMStringW &link, CMStr T2Utf pszTemp(message); DWORD cbMemoLen = 10000, cbOrigLen = (DWORD)mir_strlen(pszTemp); BYTE *pbBuffer = (BYTE*)mir_alloc(cbMemoLen); - for (MEVENT hDbEvent = db_event_last(hContact); hDbEvent; hDbEvent = db_event_prev(hContact, hDbEvent)) { + + DB::ECPTR pCursor(DB::EventsRev(hContact)); + while (MEVENT hDbEvent = pCursor.FetchNext()) { olddbei.cbBlob = db_event_getBlobSize(hDbEvent); if (olddbei.cbBlob > cbMemoLen) pbBuffer = (PBYTE)mir_realloc(pbBuffer, (size_t)(cbMemoLen = olddbei.cbBlob)); |