diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-06 08:16:09 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-06 08:16:09 +0000 |
commit | a4c70f6bedb25e5cffb08dfc5cbc2597d1642d6b (patch) | |
tree | 20db522d4733f5e50e00f78b82e75f2b7671789c /plugins/Twitter/http.cpp | |
parent | 721f5bbb2a8e903e7793434c4f2430f49c5036dc (diff) |
oops :)
git-svn-id: http://svn.miranda-ng.org/main/trunk@326 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Twitter/http.cpp')
-rw-r--r-- | plugins/Twitter/http.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/Twitter/http.cpp b/plugins/Twitter/http.cpp index aaf9210ac4..63218ca616 100644 --- a/plugins/Twitter/http.cpp +++ b/plugins/Twitter/http.cpp @@ -29,7 +29,9 @@ std::string http::url_encode(const std::string &s) std::string http::url_encode(const std::wstring &s)
{
- char *encoded = (char*)CallService( MS_NETLIB_URLENCODE, 0, ( LPARAM )( char* )_T2A(s.c_str()));
+ char* data = mir_u2a( s.c_str());
+ char *encoded = (char*)CallService( MS_NETLIB_URLENCODE, 0, ( LPARAM )data);
+ mir_free( data );
std::string ret = encoded;
HeapFree(GetProcessHeap(),0,encoded);
|