summaryrefslogtreecommitdiff
path: root/plugins/Dropbox/src/file_transfer.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-05-11 16:39:06 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-05-11 16:39:06 +0000
commit6f7054d8f6c14e032a45a42555d4ab097fc82863 (patch)
tree1cc7d5ae2c4b77743982fa55578612ce27ce150e /plugins/Dropbox/src/file_transfer.h
parentac73a9c3d9b5f72f4ee7c0d635daf47db3ef1d50 (diff)
- STL removed;
- code optimization and restructuring; - warning fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@13549 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dropbox/src/file_transfer.h')
-rw-r--r--plugins/Dropbox/src/file_transfer.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/Dropbox/src/file_transfer.h b/plugins/Dropbox/src/file_transfer.h
index f214ede484..3d887abcd5 100644
--- a/plugins/Dropbox/src/file_transfer.h
+++ b/plugins/Dropbox/src/file_transfer.h
@@ -1,8 +1,6 @@
#ifndef _FILE_TRANSFER_H_
#define _FILE_TRANSFER_H_
-#include "stdafx.h"
-
struct FileTransferParam
{
HANDLE hProcess;
@@ -79,7 +77,8 @@ struct FileTransferParam
for (; pwszUrls[count]; count++);
pwszUrls = (wchar_t**)mir_realloc(pwszUrls, sizeof(wchar_t*) * (count + 2));
}
- int length = wcslen(url);
+
+ size_t length = wcslen(url);
pwszUrls[count] = (wchar_t*)mir_alloc(sizeof(wchar_t) * (length + 1));
wcscpy(pwszUrls[count], url);
pwszUrls[count][length] = '\0';