summaryrefslogtreecommitdiff
path: root/updater/xmldata.cpp
diff options
context:
space:
mode:
author(no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10>2010-04-06 03:23:02 +0000
committer(no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10>2010-04-06 03:23:02 +0000
commit8f363ee967527cf9b91e909cd32684a4ac5a3ce9 (patch)
treebf90ac39dd3e5593d758ff4f200dc57b15319e01 /updater/xmldata.cpp
parentfce9ccb39b38cb90458cb10947034c0202d087c6 (diff)
More optimizations
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@500 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'updater/xmldata.cpp')
-rw-r--r--updater/xmldata.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/updater/xmldata.cpp b/updater/xmldata.cpp
index c124118..55cebf1 100644
--- a/updater/xmldata.cpp
+++ b/updater/xmldata.cpp
@@ -273,9 +273,7 @@ bool UpdateXMLData(const Category cat, const char *redirect_url /*= 0*/, int rec
FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, 0, err, 0, buff + len, 512 - len, 0);
ShowError(buff);
//MessageBox(0, buff + len, TranslateT("Updater: Error Downloading XML Data"), MB_OK | MB_ICONWARNING);
- char *ts = mir_t2a(buff);
- NLog(ts);
- mir_free(ts);
+ NLog(buff);
} else {
ShowError(TranslateT("Failed to download XML data - Response is NULL"));
//MessageBox(0, TranslateT("Error downloading XML data...\nResponse is NULL"), Translate("Updater Error"), MB_OK | MB_ICONWARNING);
@@ -315,10 +313,7 @@ bool UpdateXMLData(const Category cat, const char *redirect_url /*= 0*/, int rec
TCHAR buff[512];
mir_sntprintf(buff, SIZEOF(buff), TranslateT("Failed to download XML data - Invalid response, code %d"), resp->resultCode);
ShowError(buff);
-
- char *ts = mir_t2a(buff);
- NLog(ts);
- mir_free(ts);
+ NLog(buff);
CallService(MS_NETLIB_FREEHTTPREQUESTSTRUCT, 0, (LPARAM)resp);
resp = 0;
return LoadOldXMLData(cat, false);