diff options
author | George Hazan <ghazan@miranda.im> | 2017-02-06 23:31:56 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-02-06 23:31:56 +0300 |
commit | f7cfd1068128e6a7da7d69d1de035b6c70028e17 (patch) | |
tree | f6ddc1206a47661f1e4c95541c15bfdbbd5b5930 /protocols/IcqOscarJ/src/icq_proto.cpp | |
parent | 17d8c0bb68eef6817c1f03a2abd5752e01b93ce9 (diff) |
strange hand-made array removed
Diffstat (limited to 'protocols/IcqOscarJ/src/icq_proto.cpp')
-rw-r--r-- | protocols/IcqOscarJ/src/icq_proto.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/protocols/IcqOscarJ/src/icq_proto.cpp b/protocols/IcqOscarJ/src/icq_proto.cpp index a97e56df77..0c0f989102 100644 --- a/protocols/IcqOscarJ/src/icq_proto.cpp +++ b/protocols/IcqOscarJ/src/icq_proto.cpp @@ -78,7 +78,8 @@ CIcqProto::CIcqProto(const char* aProtoName, const wchar_t* aUserName) : contactsCache(10, CompareContactsCache),
CustomCapList(1),
cheekySearchId(-1),
- m_arAvatars(5)
+ m_arAvatars(5),
+ m_arFileTransfers(1)
{
debugLogA("Setting protocol/module name to '%s'", m_szModuleName);
@@ -544,7 +545,7 @@ int __cdecl CIcqProto::FileDeny(MCONTACT hContact, HANDLE hTransfer, const wchar return 1; // Invalid contact
if (icqOnline() && hTransfer && hContact) {
- if (!IsValidFileTransfer(hTransfer))
+ if (!IsValidFileTransfer((basic_filetransfer*)hTransfer))
return 1; // Invalid transfer
if (dwUin && bft->ft_magic == FT_MAGIC_ICQ) { // deny old fashioned file transfer
@@ -564,7 +565,7 @@ int __cdecl CIcqProto::FileDeny(MCONTACT hContact, HANDLE hTransfer, const wchar }
}
// Release possible orphan structure
- SafeReleaseFileTransfer((void**)&bft);
+ SafeReleaseFileTransfer(&bft);
return nReturnValue;
}
|