From 8f5d084383740f0848c4e181bde90a2aa238d9d1 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 24 Mar 2013 22:04:25 +0000 Subject: MS_NETLIB_URLENCODE removed from all plugins, but still exists in the core git-svn-id: http://svn.miranda-ng.org/main/trunk@4181 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Omegle/src/utils.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'protocols/Omegle/src/utils.cpp') diff --git a/protocols/Omegle/src/utils.cpp b/protocols/Omegle/src/utils.cpp index f524dcfba1..09b6eed036 100644 --- a/protocols/Omegle/src/utils.cpp +++ b/protocols/Omegle/src/utils.cpp @@ -24,12 +24,7 @@ along with this program. If not, see . std::string utils::url::encode(const std::string &s) { - char *encoded = reinterpret_cast(CallService( MS_NETLIB_URLENCODE, - 0,reinterpret_cast(s.c_str()))); - std::string ret = encoded; - HeapFree(GetProcessHeap(),0,encoded); - - return ret; + return mir_ptr( mir_urlEncode( s.c_str())); } void utils::text::replace_first( std::string* data, std::string from, std::string to ) -- cgit v1.2.3