From d958e3fb847813075cc059bd5a7aa28252982268 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 11 Jan 2017 22:23:57 +0300 Subject: strong typization - better typization --- protocols/IcqOscarJ/src/utilities.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'protocols/IcqOscarJ/src/utilities.cpp') diff --git a/protocols/IcqOscarJ/src/utilities.cpp b/protocols/IcqOscarJ/src/utilities.cpp index 49ef420754..7ad7f12dbf 100644 --- a/protocols/IcqOscarJ/src/utilities.cpp +++ b/protocols/IcqOscarJ/src/utilities.cpp @@ -1361,7 +1361,7 @@ DWORD ICQWaitForSingleObject(HANDLE hObject, DWORD dwMilliseconds, int bWaitAlwa } -HANDLE NetLib_OpenConnection(HANDLE hUser, const char* szIdent, NETLIBOPENCONNECTION* nloc) +HANDLE NetLib_OpenConnection(HNETLIBUSER hUser, const char* szIdent, NETLIBOPENCONNECTION* nloc) { Netlib_Logf(hUser, "%sConnecting to %s:%u", szIdent ? szIdent : "", nloc->szHost, nloc->wPort); @@ -1417,7 +1417,7 @@ int CIcqProto::NetLog_Direct(const char *fmt, ...) va_start(va, fmt); mir_vsnprintf(szText, sizeof(szText), fmt, va); va_end(va); - return CallService(MS_NETLIB_LOG, (WPARAM)m_hDirectNetlibUser, (LPARAM)szText); + return Netlib_Log(m_hDirectNetlibUser, szText); } int CIcqProto::NetLog_Uni(BOOL bDC, const char *fmt, ...) @@ -1428,8 +1428,8 @@ int CIcqProto::NetLog_Uni(BOOL bDC, const char *fmt, ...) mir_vsnprintf(szText, sizeof(szText), fmt, va); va_end(va); - HANDLE hNetlib = (bDC) ? m_hDirectNetlibUser : m_hNetlibUser; - return CallService(MS_NETLIB_LOG, (WPARAM)hNetlib, (LPARAM)szText); + HNETLIBUSER hNetlib = (bDC) ? m_hDirectNetlibUser : m_hNetlibUser; + return Netlib_Log(hNetlib, szText); } char* __fastcall ICQTranslateUtf(const char *src) -- cgit v1.2.3