diff options
author | George Hazan <ghazan@miranda.im> | 2021-12-26 20:31:39 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-12-26 20:31:39 +0300 |
commit | cddcd7483a7c472598af098e759e5d309024f606 (patch) | |
tree | b0a227d6e087c41958cc84d27bc323353248aae5 /plugins/FTPFileYM/src | |
parent | 1039b2829a264280493ba0fa979214fe024dc70c (diff) |
DWORD -> uint32_t
Diffstat (limited to 'plugins/FTPFileYM/src')
-rw-r--r-- | plugins/FTPFileYM/src/dbentry.h | 2 | ||||
-rw-r--r-- | plugins/FTPFileYM/src/ftpfile.cpp | 2 | ||||
-rw-r--r-- | plugins/FTPFileYM/src/job_generic.cpp | 2 | ||||
-rw-r--r-- | plugins/FTPFileYM/src/job_generic.h | 2 | ||||
-rw-r--r-- | plugins/FTPFileYM/src/job_packer.cpp | 2 | ||||
-rw-r--r-- | plugins/FTPFileYM/src/job_upload.cpp | 4 |
6 files changed, 7 insertions, 7 deletions
diff --git a/plugins/FTPFileYM/src/dbentry.h b/plugins/FTPFileYM/src/dbentry.h index 8b0af27736..ee8cf20f86 100644 --- a/plugins/FTPFileYM/src/dbentry.h +++ b/plugins/FTPFileYM/src/dbentry.h @@ -32,7 +32,7 @@ public: int m_fileID;
int m_iFtpNum;
char m_szFileName[256];
- DWORD m_deleteTS;
+ uint32_t m_deleteTS;
static mir_cs mutexDB;
diff --git a/plugins/FTPFileYM/src/ftpfile.cpp b/plugins/FTPFileYM/src/ftpfile.cpp index 05faa74ac4..f9df1e5591 100644 --- a/plugins/FTPFileYM/src/ftpfile.cpp +++ b/plugins/FTPFileYM/src/ftpfile.cpp @@ -251,7 +251,7 @@ int TabsrmmButtonPressed(WPARAM hContact, LPARAM lParam) return 0;
}
-int UploadFile(MCONTACT hContact, int m_iFtpNum, GenericJob::EMode mode, void **objects, int objCount, DWORD flags)
+int UploadFile(MCONTACT hContact, int m_iFtpNum, GenericJob::EMode mode, void **objects, int objCount, uint32_t flags)
{
if (!ftpList[m_iFtpNum]->isValid()) {
Utils::msgBox(TranslateT("You have to fill FTP server setting before upload a file."), MB_OK | MB_ICONERROR);
diff --git a/plugins/FTPFileYM/src/job_generic.cpp b/plugins/FTPFileYM/src/job_generic.cpp index 68e008dfb9..af95440516 100644 --- a/plugins/FTPFileYM/src/job_generic.cpp +++ b/plugins/FTPFileYM/src/job_generic.cpp @@ -146,7 +146,7 @@ int GenericJob::getFiles() return 1;
}
-int GenericJob::getFiles(void **objects, int objCount, DWORD flags)
+int GenericJob::getFiles(void **objects, int objCount, uint32_t flags)
{
if (m_mode == FTP_ZIPFOLDER) {
wchar_t *folder;
diff --git a/plugins/FTPFileYM/src/job_generic.h b/plugins/FTPFileYM/src/job_generic.h index f8ce9f36a9..9da3fc25d6 100644 --- a/plugins/FTPFileYM/src/job_generic.h +++ b/plugins/FTPFileYM/src/job_generic.h @@ -84,7 +84,7 @@ public: virtual ~GenericJob();
int getFiles();
- int getFiles(void **objects, int objCount, DWORD flags);
+ int getFiles(void **objects, int objCount, uint32_t flags);
void setStatus(EStatus status);
bool isCompleted();
diff --git a/plugins/FTPFileYM/src/job_packer.cpp b/plugins/FTPFileYM/src/job_packer.cpp index c0e8ca7115..318730d529 100644 --- a/plugins/FTPFileYM/src/job_packer.cpp +++ b/plugins/FTPFileYM/src/job_packer.cpp @@ -224,7 +224,7 @@ uLong PackerJob::getFileTime(wchar_t *file, tm_zip*, uLong *dt) void PackerJob::updateStats()
{
- DWORD dwNewTick = GetTickCount();
+ uint32_t dwNewTick = GetTickCount();
if (m_uiReaded && (time(0) > m_startTS) && (dwNewTick > m_lastUpdateTick + 100)) {
m_lastUpdateTick = dwNewTick;
diff --git a/plugins/FTPFileYM/src/job_upload.cpp b/plugins/FTPFileYM/src/job_upload.cpp index ec6629cc06..b1bc6de66f 100644 --- a/plugins/FTPFileYM/src/job_upload.cpp +++ b/plugins/FTPFileYM/src/job_upload.cpp @@ -88,8 +88,8 @@ void UploadJob::autoSend() dbei.eventType = EVENTTYPE_MESSAGE;
dbei.flags = DBEF_SENT;
dbei.szModule = szProto;
- dbei.timestamp = (DWORD)time(0);
- dbei.cbBlob = (DWORD)mir_strlen(m_szFileLink) + 1;
+ dbei.timestamp = (uint32_t)time(0);
+ dbei.cbBlob = (uint32_t)mir_strlen(m_szFileLink) + 1;
dbei.pBlob = (uint8_t*)m_szFileLink;
db_event_add(m_hContact, &dbei);
ProtoChainSend(m_hContact, PSS_MESSAGE, 0, (LPARAM)m_szFileLink);
|