summaryrefslogtreecommitdiff
path: root/plugins/Non-IM Contact/src/http.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2013-09-21 20:39:17 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2013-09-21 20:39:17 +0000
commit4d970faf406c59e807a9ffd4d7a51f1aaad6636a (patch)
treedbc0f6ff815fa7c357ce0df22cf84417794d3c80 /plugins/Non-IM Contact/src/http.cpp
parent52824c91bac6d6cc0f04e242b07d9031477b6362 (diff)
translation fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@6171 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Non-IM Contact/src/http.cpp')
-rw-r--r--plugins/Non-IM Contact/src/http.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/plugins/Non-IM Contact/src/http.cpp b/plugins/Non-IM Contact/src/http.cpp
index f4b8b006d8..5c300de80e 100644
--- a/plugins/Non-IM Contact/src/http.cpp
+++ b/plugins/Non-IM Contact/src/http.cpp
@@ -31,9 +31,9 @@ HANDLE hNetlibUser;
// szUrl = URL of the webpage to be retrieved
// return value = 0 for success, 1 or HTTP error code for failure
// global var used: szData, szInfo = containing the retrieved data
-int InternetDownloadFile (CHAR *szUrl)
+int InternetDownloadFile (char *szUrl)
{
- NETLIBHTTPREQUEST nlhr={0}, *nlhrReply;
+ NETLIBHTTPREQUEST nlhr={0};
// initialize the netlib request
nlhr.cbSize=sizeof(nlhr);
@@ -48,11 +48,11 @@ int InternetDownloadFile (CHAR *szUrl)
nlhr.headers[nlhr.headersCount-1].szValue="Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)";
// download the page
- nlhrReply=(NETLIBHTTPREQUEST*)CallService(MS_NETLIB_HTTPTRANSACTION,(WPARAM)hNetlibUser,(LPARAM)&nlhr);
+ NETLIBHTTPREQUEST *nlhrReply=(NETLIBHTTPREQUEST*)CallService(MS_NETLIB_HTTPTRANSACTION,(WPARAM)hNetlibUser,(LPARAM)&nlhr);
if (nlhrReply) {
// return error code if the recieved code is neither 200 OK or 302 Moved
if (nlhrReply->resultCode != 200 && nlhrReply->resultCode != 302)
- return (int)nlhrReply->resultCode;
+ return nlhrReply->resultCode;
// if the recieved code is 200 OK
else if (nlhrReply->resultCode == 200)
{
@@ -92,12 +92,11 @@ int InternetDownloadFile (CHAR *szUrl)
//============ NETLIB INITIALIZATION ============
-// initialize netlib support from weather protocol
void NetlibInit() {
NETLIBUSER nlu={0};
nlu.cbSize=sizeof(nlu);
- nlu.flags=NUF_OUTGOING|NUF_HTTPCONNS|NUF_NOHTTPSOPTION;
+ nlu.flags=NUF_OUTGOING|NUF_HTTPCONNS|NUF_NOHTTPSOPTION|NUF_TCHAR;
nlu.szSettingsModule= MODNAME;
- nlu.szDescriptiveName= Translate("Non-IM Contacts");
+ nlu.ptszDescriptiveName= TranslateT("Non-IM Contacts");
hNetlibUser=(HANDLE)CallService(MS_NETLIB_REGISTERUSER,0,(LPARAM)&nlu);
}