diff options
Diffstat (limited to 'plugins/Dropbox/src/dropbox_services.cpp')
-rw-r--r-- | plugins/Dropbox/src/dropbox_services.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/plugins/Dropbox/src/dropbox_services.cpp b/plugins/Dropbox/src/dropbox_services.cpp index cece2a4bc3..81f77683ba 100644 --- a/plugins/Dropbox/src/dropbox_services.cpp +++ b/plugins/Dropbox/src/dropbox_services.cpp @@ -96,12 +96,11 @@ INT_PTR CDropbox::ProtoSendFile(WPARAM, LPARAM lParam) ftp->pfts.ptszFiles[k] = mir_wstrdup(paths[i]);
- FILE *file = _wfopen(paths[i], L"rb");
- if (file != NULL) {
- fseek(file, 0, SEEK_END);
- ftp->pfts.totalBytes += ftell(file);
- fseek(file, 0, SEEK_SET);
- fclose(file);
+ FILE *hFile = _wfopen(paths[i], L"rb");
+ if (hFile != NULL) {
+ _fseeki64(hFile, 0, SEEK_END);
+ ftp->pfts.totalBytes += _ftelli64(hFile);
+ fclose(hFile);
}
k++;
}
|