diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2013-11-08 20:21:46 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2013-11-08 20:21:46 +0000 |
commit | 04fb44b780f18e57abd1afb0a38b845ace114e6b (patch) | |
tree | 5328cc5b4a2a2a3295edb5922077c79f94356641 /protocols/IcqOscarJ/src/oscar_filetransfer.cpp | |
parent | 0829927dddd3277bf0159fac6750d00a84a805c6 (diff) |
removed unneeded UTF conversions
git-svn-id: http://svn.miranda-ng.org/main/trunk@6828 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/IcqOscarJ/src/oscar_filetransfer.cpp')
-rw-r--r-- | protocols/IcqOscarJ/src/oscar_filetransfer.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/protocols/IcqOscarJ/src/oscar_filetransfer.cpp b/protocols/IcqOscarJ/src/oscar_filetransfer.cpp index 67cea9db88..c2ee0077cd 100644 --- a/protocols/IcqOscarJ/src/oscar_filetransfer.cpp +++ b/protocols/IcqOscarJ/src/oscar_filetransfer.cpp @@ -840,15 +840,13 @@ static char *oftGetFileContainer(oscar_filetransfer* oft, const char** files, in HANDLE CIcqProto::oftInitTransfer(HANDLE hContact, DWORD dwUin, char* szUid, const TCHAR** files, const TCHAR* pszDesc)
{
- oscar_filetransfer *ft;
int i, filesCount;
struct _stati64 statbuf;
- char ** filesUtf;
// Initialize filetransfer struct
debugLogA("Init file send");
- ft = CreateOscarTransfer();
+ oscar_filetransfer *ft = CreateOscarTransfer();
ft->hContact = hContact;
ft->pMessage.bMessageType = MTYPE_FILEREQ;
InitMessageCookie(&ft->pMessage);
@@ -858,7 +856,7 @@ HANDLE CIcqProto::oftInitTransfer(HANDLE hContact, DWORD dwUin, char* szUid, con ft->files_list = (char**)SAFE_MALLOC(sizeof(TCHAR *) * filesCount);
ft->qwTotalSize = 0;
- filesUtf = (char**)SAFE_MALLOC(sizeof(char *) * filesCount);
+ char **filesUtf = (char**)SAFE_MALLOC(sizeof(char *) * filesCount);
for(i = 0; i < filesCount; i++) filesUtf[i] = FileNameToUtf(files[i]);
// Prepare files arrays
|