diff options
Diffstat (limited to 'updater/xmldata.cpp')
-rw-r--r-- | updater/xmldata.cpp | 9 |
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);
|