diff options
Diffstat (limited to 'plugins/Dropbox/src/file_transfer.h')
-rw-r--r-- | plugins/Dropbox/src/file_transfer.h | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/plugins/Dropbox/src/file_transfer.h b/plugins/Dropbox/src/file_transfer.h index 3def765d3e..8afb1b4ec3 100644 --- a/plugins/Dropbox/src/file_transfer.h +++ b/plugins/Dropbox/src/file_transfer.h @@ -23,8 +23,10 @@ struct FileTransferParam MCONTACT hContact;
PROTOFILETRANSFERSTATUS pfts;
+ bool isTerminated;
+
int totalFolders;
- TCHAR **pwszFolders;
+ TCHAR **ptszFolders;
int relativePathStart;
LIST<char> urlList;
@@ -32,9 +34,11 @@ struct FileTransferParam FileTransferParam() : urlList(1)
{
totalFolders = 0;
- pwszFolders = NULL;
+ ptszFolders = NULL;
relativePathStart = 0;
+ isTerminated = false;
+
pfts.cbSize = sizeof(this->pfts);
pfts.flags = PFTS_TCHAR;
pfts.currentFileNumber = 0;
@@ -45,13 +49,13 @@ struct FileTransferParam pfts.totalProgress = 0;
pfts.pszFiles = NULL;
pfts.tszWorkingDir = NULL;
- pfts.wszCurrentFile = NULL;
+ pfts.tszCurrentFile = NULL;
}
~FileTransferParam()
{
- if (pfts.wszWorkingDir)
- mir_free(pfts.wszWorkingDir);
+ if (pfts.tszWorkingDir)
+ mir_free(pfts.tszWorkingDir);
if (pfts.pszFiles)
{
@@ -62,13 +66,13 @@ struct FileTransferParam mir_free(pfts.pszFiles);
}
- if (pwszFolders)
+ if (ptszFolders)
{
- for (int i = 0; pwszFolders[i]; i++)
+ for (int i = 0; ptszFolders[i]; i++)
{
- if (pwszFolders[i]) mir_free(pwszFolders[i]);
+ if (ptszFolders[i]) mir_free(ptszFolders[i]);
}
- mir_free(pwszFolders);
+ mir_free(ptszFolders);
}
for (int i = 0; i < urlList.getCount(); i++)
|