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/Dropbox/src/file_transfer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/Dropbox/src/file_transfer.h') diff --git a/plugins/Dropbox/src/file_transfer.h b/plugins/Dropbox/src/file_transfer.h index 6feacbb445..f5ef1e56fd 100644 --- a/plugins/Dropbox/src/file_transfer.h +++ b/plugins/Dropbox/src/file_transfer.h @@ -91,7 +91,7 @@ public: { relativePathStart = wcsrchr(path, '\\') - path + 1; pfts.tszWorkingDir = (wchar_t*)mir_calloc(sizeof(wchar_t) * relativePathStart); - mir_tstrncpy(pfts.tszWorkingDir, path, relativePathStart); + mir_wstrncpy(pfts.tszWorkingDir, path, relativePathStart); if (PathIsDirectory(path)) folderName = wcsrchr(path, '\\') + 1; } @@ -117,7 +117,7 @@ public: void AddFile(const wchar_t *path) { pfts.ptszFiles = (wchar_t**)mir_realloc(pfts.ptszFiles, sizeof(wchar_t*) * (pfts.totalFiles + 2)); - pfts.ptszFiles[pfts.totalFiles++] = mir_tstrdup(path); + pfts.ptszFiles[pfts.totalFiles++] = mir_wstrdup(path); pfts.ptszFiles[pfts.totalFiles] = NULL; FILE *file = _wfopen(path, L"rb"); -- cgit v1.2.3