diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2015-11-14 14:44:56 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2015-11-14 14:44:56 +0000 |
commit | d1de0e3cba9195d28126e102679d6ed1a7f72d0c (patch) | |
tree | ec30d8fd32cea0c13dd2d973b26442d8a9af77f7 /protocols/Tlen/src/tlen_file.cpp | |
parent | 29bd9ad7abfe2d9f3e55ece719ac48534b08ea62 (diff) |
Tlen:
- Fix for GetContactDisplayName
git-svn-id: http://svn.miranda-ng.org/main/trunk@15722 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tlen/src/tlen_file.cpp')
-rw-r--r-- | protocols/Tlen/src/tlen_file.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/protocols/Tlen/src/tlen_file.cpp b/protocols/Tlen/src/tlen_file.cpp index 49f62d50e9..d43ff1d153 100644 --- a/protocols/Tlen/src/tlen_file.cpp +++ b/protocols/Tlen/src/tlen_file.cpp @@ -172,8 +172,9 @@ static void TlenFileReceivingConnection(HANDLE hConnection, DWORD, void * pExtra else Netlib_CloseHandle(hConnection);
}
-static void __cdecl TlenFileReceiveThread(TLEN_FILE_TRANSFER *ft)
+static void __cdecl TlenFileReceiveThread(void *arg)
{
+ TLEN_FILE_TRANSFER *ft = (TLEN_FILE_TRANSFER *)arg;
ft->proto->debugLogA("Thread started: type=file_receive server='%s' port='%d'", ft->hostName, ft->wPort);
ft->mode = FT_RECV;
@@ -441,8 +442,9 @@ int TlenFileCancelAll(TlenProtocol *proto) return 0;
}
-static void __cdecl TlenFileSendingThread(TLEN_FILE_TRANSFER *ft)
+static void __cdecl TlenFileSendingThread(void *arg)
{
+ TLEN_FILE_TRANSFER *ft = (TLEN_FILE_TRANSFER *)arg;
char *nick;
ft->proto->debugLogA("Thread started: type=tlen_file_send");
@@ -630,7 +632,7 @@ void TlenProcessF(XmlNode *node, ThreadData *info) if ((p = TlenXmlGetAttrValue(node, "i")) != NULL)
if ((item = TlenListGetItemPtr(info->proto, LIST_FILE, p)) != NULL)
if (!mir_strcmp(item->ft->jid, jid))
- mir_forkthread((pThreadFunc)TlenFileSendingThread, item->ft);
+ mir_forkthread(TlenFileSendingThread, item->ft);
}
else if (!mir_strcmp(e, "6")) {
// FILE_RECV : e='6' : IP and port information to connect to get file
@@ -640,7 +642,7 @@ void TlenProcessF(XmlNode *node, ThreadData *info) item->ft->hostName = mir_strdup(p);
if ((p = TlenXmlGetAttrValue(node, "p")) != NULL) {
item->ft->wPort = atoi(p);
- mir_forkthread((pThreadFunc)TlenFileReceiveThread, item->ft);
+ mir_forkthread(TlenFileReceiveThread, item->ft);
}
}
}
|