From 93b1c035da40df23e3eef4a1efd10dfe9c451375 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 27 Sep 2012 14:35:51 +0000 Subject: fix for the file description's encoding (ICQ file receiving) git-svn-id: http://svn.miranda-ng.org/main/trunk@1683 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/IcqOscarJ/icq_filerequests.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'protocols/IcqOscarJ/icq_filerequests.cpp') diff --git a/protocols/IcqOscarJ/icq_filerequests.cpp b/protocols/IcqOscarJ/icq_filerequests.cpp index 7560f613e5..d85de72580 100644 --- a/protocols/IcqOscarJ/icq_filerequests.cpp +++ b/protocols/IcqOscarJ/icq_filerequests.cpp @@ -159,8 +159,8 @@ void CIcqProto::handleFileRequest(PBYTE buf, WORD wLen, DWORD dwUin, DWORD dwCoo // Initialize a filetransfer struct filetransfer *ft = CreateFileTransfer(hContact, dwUin, nVersion); ft->dwCookie = dwCookie; - ft->szFilename = ansi_to_utf8(pszFileName); - ft->szDescription = ansi_to_utf8(pszDescription); + ft->szFilename = mir_strdup(pszFileName); + ft->szDescription = 0; ft->fileId = -1; ft->dwTotalSize = dwFileSize; ft->pMessage.dwMsgID1 = dwID1; @@ -169,13 +169,13 @@ void CIcqProto::handleFileRequest(PBYTE buf, WORD wLen, DWORD dwUin, DWORD dwCoo ft->bEmptyDesc = bEmptyDesc; // Send chain event - TCHAR* ptszFileName = mir_a2t(pszFileName); + TCHAR* ptszFileName = mir_utf8decodeT(pszFileName); PROTORECVFILET pre = {0}; pre.flags = PREF_TCHAR; pre.fileCount = 1; pre.timestamp = time(NULL); - pre.tszDescription = mir_a2t(pszDescription); + pre.tszDescription = mir_utf8decodeT(pszDescription); pre.ptszFiles = &ptszFileName; pre.lParam = (LPARAM)ft; -- cgit v1.2.3