From 2f261839b60692e33d0e160344d0d636d49c90ba Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 27 Jul 2016 14:23:31 +0000 Subject: less TCHARs git-svn-id: http://svn.miranda-ng.org/main/trunk@17138 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/PluginUpdater/src/unzipfile.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/PluginUpdater/src/unzipfile.cpp') diff --git a/plugins/PluginUpdater/src/unzipfile.cpp b/plugins/PluginUpdater/src/unzipfile.cpp index 979dcd289e..7698e056a0 100644 --- a/plugins/PluginUpdater/src/unzipfile.cpp +++ b/plugins/PluginUpdater/src/unzipfile.cpp @@ -32,7 +32,7 @@ extern "C" static void PrepareFileName(wchar_t *dest, size_t destSize, const wchar_t *ptszPath, const wchar_t *ptszFileName) { - mir_sntprintf(dest, destSize, L"%s\\%s", ptszPath, ptszFileName); + mir_snwprintf(dest, destSize, L"%s\\%s", ptszPath, ptszFileName); for (wchar_t *p = dest; *p; ++p) if (*p == '/') @@ -57,9 +57,9 @@ bool extractCurrentFile(unzFile uf, wchar_t *ptszDestPath, wchar_t *ptszBackPath return true; wchar_t tszDestFile[MAX_PATH], tszBackFile[MAX_PATH]; - wchar_t *ptszNewName = mir_utf8decodeT(filename); + wchar_t *ptszNewName = mir_utf8decodeW(filename); if (ptszNewName == NULL) - ptszNewName = mir_a2t(filename); + ptszNewName = mir_a2u(filename); if (!(file_info.external_fa & FILE_ATTRIBUTE_DIRECTORY)) { err = unzOpenCurrentFile(uf); -- cgit v1.2.3