diff options
author | (no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> | 2010-05-16 20:18:05 +0000 |
---|---|---|
committer | (no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> | 2010-05-16 20:18:05 +0000 |
commit | 8f0b7ae8e77984a30732170d298c3f24ac185a76 (patch) | |
tree | 680be542397ab39fed91292a0ddd65380dccd652 /updater/socket.cpp | |
parent | dc0ecd8e51b27c6ea8e3d8ac3821bc9b875bb88b (diff) |
Fixed bogus error message
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@516 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'updater/socket.cpp')
-rw-r--r-- | updater/socket.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/updater/socket.cpp b/updater/socket.cpp index 729b997..defa292 100644 --- a/updater/socket.cpp +++ b/updater/socket.cpp @@ -148,9 +148,10 @@ bool GetFile(char *url, TCHAR *temp_folder, char *plugin_name, char *version, bo }
else
{
- TCHAR buff[1024];
- mir_sntprintf(buff, SIZEOF(buff), TranslateT("Failed to download \"%s\" - Invalid response, code %d"), plugin_name, resp->resultCode);
+ TCHAR buff[1024], *tmp;
+ mir_sntprintf(buff, SIZEOF(buff), TranslateT("Failed to download \"%s\" - Invalid response, code %d"), (tmp = mir_a2t(plugin_name)), resp->resultCode);
ShowError(buff);
+ mir_free(tmp);
}
CallService(MS_NETLIB_FREEHTTPREQUESTSTRUCT, 0, (LPARAM)resp);
}
|