diff options
Diffstat (limited to 'src/core/stdfile')
-rw-r--r-- | src/core/stdfile/src/filerecvdlg.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/stdfile/src/filerecvdlg.cpp b/src/core/stdfile/src/filerecvdlg.cpp index 760633e225..29e0a7f53c 100644 --- a/src/core/stdfile/src/filerecvdlg.cpp +++ b/src/core/stdfile/src/filerecvdlg.cpp @@ -243,9 +243,8 @@ public: db_event_markRead(dat->hContact, dat->hDbEvent);
- DB::EventInfo dbei;
- dbei.cbBlob = -1;
- if (db_event_get(dat->hDbEvent, &dbei))
+ DB::EventInfo dbei(dat->hDbEvent);
+ if (!dbei)
return false;
dat->fs = m_lParam ? (HANDLE)m_lParam : (HANDLE)*(PDWORD)dbei.pBlob;
|