From 8f363ee967527cf9b91e909cd32684a4ac5a3ce9 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> Date: Tue, 6 Apr 2010 03:23:02 +0000 Subject: More optimizations git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@500 4f64403b-2f21-0410-a795-97e2b3489a10 --- updater/xmldata.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'updater/xmldata.cpp') 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); -- cgit v1.2.3