diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2010-10-14 01:44:14 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2010-10-14 01:44:14 +0300 |
commit | bd1b6d4572236472864378238968b3c4cb02afa0 (patch) | |
tree | ca87add7c2ccf0518062445b1c311311d5b43b53 /init.cpp | |
parent | a8e58dc8f24d10dd4de16f19ace4740350d9b9cc (diff) |
fixed miranda lock on filetransfers, encryption/decryption thread timeout set to 10 minutes
Diffstat (limited to 'init.cpp')
-rw-r--r-- | init.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -229,11 +229,17 @@ static int OnModulesLoaded(WPARAM wParam,LPARAM lParam) return 0; } - +extern list<wstring> transfers; extern "C" int __declspec(dllexport) Unload(void) {
for (HANDLE hContact = (HANDLE)CallService(MS_DB_CONTACT_FINDFIRST, 0, 0); hContact; hContact = (HANDLE)CallService(MS_DB_CONTACT_FINDNEXT, (WPARAM)hContact, 0)) DBDeleteContactSetting(hContact, szGPGModuleName, "KeyID_Prescense"); + if(!transfers.empty()) + { + for(list<wstring>::iterator p = transfers.begin(); p != transfers.end(); p++) + if(!(*p).empty()) + DeleteFile((*p).c_str()); + } mir_free(inopentag); mir_free(inclosetag); mir_free(outopentag); |