From d3cb19278d60ac6f7963379254546cdca36a90e2 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 14 Jan 2017 01:22:55 +0300 Subject: separate handle types for HNETLIBCONN & HNETLIBBIND --- plugins/SmileyAdd/src/download.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/SmileyAdd') diff --git a/plugins/SmileyAdd/src/download.cpp b/plugins/SmileyAdd/src/download.cpp index 66d938a506..04df9baf8a 100644 --- a/plugins/SmileyAdd/src/download.cpp +++ b/plugins/SmileyAdd/src/download.cpp @@ -39,7 +39,7 @@ static OBJLIST dlQueue(10); static wchar_t cachepath[MAX_PATH]; static bool threadRunning; -bool InternetDownloadFile(const char *szUrl, char *szDest, HANDLE &hHttpDwnl) +bool InternetDownloadFile(const char *szUrl, char *szDest, HNETLIBCONN &hHttpDwnl) { int result = 0xBADBAD; char *szRedirUrl = NULL; @@ -127,7 +127,7 @@ void __cdecl SmileyDownloadThread(void*) Thread_SetName("SmileyAdd: SmileyDownloadThread"); bool needext = false; - HANDLE hHttpDwnl = NULL; + HNETLIBCONN hHttpDwnl = NULL; WaitForSingleObject(g_hDlMutex, 3000); while (!Miranda_IsTerminated() && dlQueue.getCount()) { ReleaseMutex(g_hDlMutex); -- cgit v1.2.3