diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_app/src/db_events.cpp | 2 | ||||
-rw-r--r-- | src/mir_app/src/srmm_util.cpp | 8 |
2 files changed, 7 insertions, 3 deletions
diff --git a/src/mir_app/src/db_events.cpp b/src/mir_app/src/db_events.cpp index dd8f7ed5b9..23728e559d 100644 --- a/src/mir_app/src/db_events.cpp +++ b/src/mir_app/src/db_events.cpp @@ -331,7 +331,7 @@ DB::FILE_BLOB::~FILE_BLOB() bool DB::FILE_BLOB::isCompleted() const
{
if (m_iFileSize == -1)
- return true;
+ return false;
return m_iFileSize != 0 && m_iFileSize == m_iTransferred;
}
diff --git a/src/mir_app/src/srmm_util.cpp b/src/mir_app/src/srmm_util.cpp index 87e0b890a3..953f13f0c5 100644 --- a/src/mir_app/src/srmm_util.cpp +++ b/src/mir_app/src/srmm_util.cpp @@ -210,8 +210,12 @@ MIR_APP_DLL(void) Srmm_DownloadOfflineFile(MCONTACT hContact, MEVENT hDbEvent, i switch (iCommand & 0xFFF) {
case OFD_COPYURL:
- pCallback = new OFD_CopyUrl(blob.getUrl());
- break;
+ {
+ OFDTHREAD *ofd = new OFDTHREAD(hDbEvent, L"", iCommand);
+ ofd->pCallback = new OFD_CopyUrl(blob.getUrl());
+ CallProtoService(dbei.szModule, PS_OFFLINEFILE, (WPARAM)ofd, 0);
+ }
+ return;
case OFD_DOWNLOAD:
pCallback = new OFD_Download();
|