From c74c7fe3605d7426afb6b6436d4ebaa978f34c2f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 12 Jan 2017 13:58:06 +0300 Subject: a fix for passing connection handles into Netlib_Logf --- protocols/FacebookRM/src/http_request.h | 2 +- protocols/SkypeWeb/src/http_request.h | 2 +- protocols/Steam/src/http_request.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols') diff --git a/protocols/FacebookRM/src/http_request.h b/protocols/FacebookRM/src/http_request.h index 634b24605a..53423cb58c 100644 --- a/protocols/FacebookRM/src/http_request.h +++ b/protocols/FacebookRM/src/http_request.h @@ -287,7 +287,7 @@ public: dataLength = (int)mir_strlen(pData); } - Netlib_Logf(NULL, "Send request to %s", szUrl); + Netlib_Logf(Netlib_GetConnNlu(hConnection), "Send request to %s", szUrl); return (NETLIBHTTPREQUEST*)CallService(MS_NETLIB_HTTPTRANSACTION, (WPARAM)hConnection, (LPARAM)(NETLIBHTTPREQUEST*)this); } diff --git a/protocols/SkypeWeb/src/http_request.h b/protocols/SkypeWeb/src/http_request.h index ab4a556bcd..a696a2f9c6 100644 --- a/protocols/SkypeWeb/src/http_request.h +++ b/protocols/SkypeWeb/src/http_request.h @@ -274,7 +274,7 @@ public: dataLength = (int)mir_strlen(pData); } - Netlib_Logf(NULL, "Send request to %s", szUrl); + Netlib_Logf(Netlib_GetConnNlu(hConnection), "Send request to %s", szUrl); return (NETLIBHTTPREQUEST*)CallService(MS_NETLIB_HTTPTRANSACTION, (WPARAM)hConnection, (LPARAM)(NETLIBHTTPREQUEST*)this); } diff --git a/protocols/Steam/src/http_request.h b/protocols/Steam/src/http_request.h index 402185048d..fbbd7d3e84 100644 --- a/protocols/Steam/src/http_request.h +++ b/protocols/Steam/src/http_request.h @@ -144,7 +144,7 @@ public: { szUrl = m_url.GetBuffer(); - Netlib_Logf(NULL, "Send request to %s", szUrl); + Netlib_Logf(Netlib_GetConnNlu(hConnection), "Send request to %s", szUrl); NETLIBHTTPREQUEST* response = (NETLIBHTTPREQUEST*)CallService(MS_NETLIB_HTTPTRANSACTION, (WPARAM)hConnection, (LPARAM)this); HttpResponse* result = new HttpResponse(response, this); -- cgit v1.2.3