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 /protocols/YAMN/src/proto/pop3 | |
parent | 1039b2829a264280493ba0fa979214fe024dc70c (diff) |
DWORD -> uint32_t
Diffstat (limited to 'protocols/YAMN/src/proto/pop3')
-rw-r--r-- | protocols/YAMN/src/proto/pop3/pop3.cpp | 34 | ||||
-rw-r--r-- | protocols/YAMN/src/proto/pop3/pop3.h | 2 | ||||
-rw-r--r-- | protocols/YAMN/src/proto/pop3/pop3comm.cpp | 80 | ||||
-rw-r--r-- | protocols/YAMN/src/proto/pop3/pop3comm.h | 10 | ||||
-rw-r--r-- | protocols/YAMN/src/proto/pop3/pop3opt.cpp | 8 |
5 files changed, 67 insertions, 67 deletions
diff --git a/protocols/YAMN/src/proto/pop3/pop3.cpp b/protocols/YAMN/src/proto/pop3/pop3.cpp index d263d332e4..a90eccd90f 100644 --- a/protocols/YAMN/src/proto/pop3/pop3.cpp +++ b/protocols/YAMN/src/proto/pop3/pop3.cpp @@ -35,7 +35,7 @@ char *CPop3Client::Connect(const char* servername,const int port,BOOL UseSSL, BOOL NoTLS) { if (Stopped) // check if we can work with this POP3 client session - throw POP3Error = (DWORD)EPOP3_STOPPED; + throw POP3Error = (uint32_t)EPOP3_STOPPED; delete NetClient; SSL = UseSSL; @@ -62,7 +62,7 @@ char *CPop3Client::Connect(const char* servername,const int port,BOOL UseSSL, BO extern BOOL SSLLoaded; if (!NoTLS & !(SSL)) { if (NetClient->Stopped) //check if we can work with this POP3 client session - throw POP3Error = (DWORD)EPOP3_STOPPED; + throw POP3Error = (uint32_t)EPOP3_STOPPED; NetClient->Send("STLS\r\n"); free(temp); temp = RecvRest(NetClient->Recv(), POP3_SEARCHACK); @@ -105,7 +105,7 @@ char* CPop3Client::RecvRest(char* prev,int mode,int size) { if (PrevString != nullptr) free(PrevString); - throw POP3Error=(DWORD)EPOP3_STOPPED; + throw POP3Error=(uint32_t)EPOP3_STOPPED; } if (SizeLeft==0) //if block is full { @@ -114,7 +114,7 @@ char* CPop3Client::RecvRest(char* prev,int mode,int size) LastString=NetClient->Recv(nullptr,SizeLeft); PrevString=(char *)realloc(PrevString,sizeof(char)*(SizeRead+size)); if (PrevString==nullptr) - throw POP3Error=(DWORD)EPOP3_RESTALLOC; + throw POP3Error=(uint32_t)EPOP3_RESTALLOC; memcpy(PrevString+SizeRead,LastString,size); free(LastString); } @@ -188,7 +188,7 @@ BOOL CPop3Client::SearchFromStart(char *start,int bs,int mode) char* CPop3Client::User(char* name) { if (NetClient->Stopped) // check if we can work with this POP3 client session - throw POP3Error = (DWORD)EPOP3_STOPPED; + throw POP3Error = (uint32_t)EPOP3_STOPPED; char query[128]; char *Result; @@ -197,7 +197,7 @@ char* CPop3Client::User(char* name) NetClient->Send(query); Result = RecvRest(NetClient->Recv(), POP3_SEARCHACK); if (AckFlag == POP3_FERR) - throw POP3Error = (DWORD)EPOP3_BADUSER; + throw POP3Error = (uint32_t)EPOP3_BADUSER; POP3Error = 0; return Result; } @@ -207,7 +207,7 @@ char* CPop3Client::User(char* name) char* CPop3Client::Pass(char* pw) { if (NetClient->Stopped) //check if we can work with this POP3 client session - throw POP3Error = (DWORD)EPOP3_STOPPED; + throw POP3Error = (uint32_t)EPOP3_STOPPED; char query[128]; mir_snprintf(query, "PASS %s\r\n", pw); @@ -215,7 +215,7 @@ char* CPop3Client::Pass(char* pw) char *Result = RecvRest(NetClient->Recv(), POP3_SEARCHACK); if (AckFlag == POP3_FERR) - throw POP3Error = (DWORD)EPOP3_BADPASS; + throw POP3Error = (uint32_t)EPOP3_BADPASS; return Result; } @@ -224,14 +224,14 @@ char* CPop3Client::Pass(char* pw) char* CPop3Client::APOP(char* name, char* pw, char* timestamp) { if (NetClient->Stopped) // check if we can work with this POP3 client session - throw POP3Error = (DWORD)EPOP3_STOPPED; + throw POP3Error = (uint32_t)EPOP3_STOPPED; char query[512]; char *Result; unsigned char digest[16]; if (timestamp == nullptr) - throw POP3Error = (DWORD)EPOP3_APOP; + throw POP3Error = (uint32_t)EPOP3_APOP; mir_md5_state_s ctx; mir_md5_init(&ctx); mir_md5_append(&ctx, (const unsigned char *)timestamp, (unsigned int)mir_strlen(timestamp)); @@ -244,7 +244,7 @@ char* CPop3Client::APOP(char* name, char* pw, char* timestamp) NetClient->Send(query); Result = RecvRest(NetClient->Recv(), POP3_SEARCHACK); if (AckFlag == POP3_FERR) - throw POP3Error = (DWORD)EPOP3_BADUSER; + throw POP3Error = (uint32_t)EPOP3_BADUSER; return Result; } @@ -263,7 +263,7 @@ char* CPop3Client::Quit() char* CPop3Client::Stat() { if (NetClient->Stopped) //check if we can work with this POP3 client session - throw POP3Error = (DWORD)EPOP3_STOPPED; + throw POP3Error = (uint32_t)EPOP3_STOPPED; char query[] = "STAT\r\n"; NetClient->Send(query); @@ -275,7 +275,7 @@ char* CPop3Client::Stat() char* CPop3Client::List() { if (NetClient->Stopped) // check if we can work with this POP3 client session - throw POP3Error = (DWORD)EPOP3_STOPPED; + throw POP3Error = (uint32_t)EPOP3_STOPPED; char query[] = "LIST\r\n"; @@ -288,7 +288,7 @@ char* CPop3Client::List() char* CPop3Client::Top(int nr, int lines) { if (NetClient->Stopped) // check if we can work with this POP3 client session - throw POP3Error=(DWORD)EPOP3_STOPPED; + throw POP3Error=(uint32_t)EPOP3_STOPPED; char query[128]; @@ -302,7 +302,7 @@ char* CPop3Client::Top(int nr, int lines) char* CPop3Client::Uidl(int nr) { if (NetClient->Stopped) // check if we can work with this POP3 client session - throw POP3Error = (DWORD)EPOP3_STOPPED; + throw POP3Error = (uint32_t)EPOP3_STOPPED; char query[128]; if (nr) { @@ -320,7 +320,7 @@ char* CPop3Client::Uidl(int nr) char* CPop3Client::Dele(int nr) { if (NetClient->Stopped) // check if we can work with this POP3 client session - throw POP3Error = (DWORD)EPOP3_STOPPED; + throw POP3Error = (uint32_t)EPOP3_STOPPED; char query[128]; @@ -334,7 +334,7 @@ char* CPop3Client::Dele(int nr) char* CPop3Client::Retr(int nr) { if (NetClient->Stopped) // check if we can work with this POP3 client session - throw POP3Error = (DWORD)EPOP3_STOPPED; + throw POP3Error = (uint32_t)EPOP3_STOPPED; char query[128]; mir_snprintf(query, "RETR %d\r\n", nr); diff --git a/protocols/YAMN/src/proto/pop3/pop3.h b/protocols/YAMN/src/proto/pop3/pop3.h index 1005f3a47b..963a584d30 100644 --- a/protocols/YAMN/src/proto/pop3/pop3.h +++ b/protocols/YAMN/src/proto/pop3/pop3.h @@ -39,7 +39,7 @@ public: BOOL SSL; BOOL Stopped; - DWORD POP3Error; + uint32_t POP3Error; class CNetClient *NetClient; //here the network layout is defined (TCP or SSL+TCP etc.) private: BOOL SearchFromEnd(char *end,int bs,int mode); diff --git a/protocols/YAMN/src/proto/pop3/pop3comm.cpp b/protocols/YAMN/src/proto/pop3/pop3comm.cpp index bd6b72bd11..fbb89eaa78 100644 --- a/protocols/YAMN/src/proto/pop3/pop3comm.cpp +++ b/protocols/YAMN/src/proto/pop3/pop3comm.cpp @@ -48,7 +48,7 @@ HYAMNMAIL WINAPI CreatePOP3Mail(CAccount *Account, DWORD CMimeMailVersion); //Function does all needed work when connection failed or any error occured //Creates structure containing error code, closes internet session, runs "bad connect" function -static void PostErrorProc(HPOP3ACCOUNT ActualAccount, void *ParamToBadConnect, DWORD POP3PluginParam, BOOL UseSSL); +static void PostErrorProc(HPOP3ACCOUNT ActualAccount, void *ParamToBadConnect, uint32_t POP3PluginParam, BOOL UseSSL); //Checks POP3 account and stores all info to account. It deletes old mails=> synchro // WhichTemp- pointer to strucure containing needed information @@ -338,7 +338,7 @@ DWORD WINAPI UnLoadPOP3(void *) DWORD WINAPI WritePOP3Accounts() { - DWORD ReturnValue = CallService(MS_YAMN_WRITEACCOUNTS, (WPARAM)POP3Plugin, (LPARAM)FileName); + uint32_t ReturnValue = CallService(MS_YAMN_WRITEACCOUNTS, (WPARAM)POP3Plugin, (LPARAM)FileName); if (ReturnValue == EACC_SYSTEM) { wchar_t temp[1024] = { 0 }; mir_snwprintf(temp, L"%s\n%s", TranslateT("Error while copying data to disk occurred. Is file in use?"), FileName); @@ -351,9 +351,9 @@ DWORD WINAPI WritePOP3Accounts() DWORD WINAPI WritePOP3Options(HANDLE File, CAccount *Which) { DWORD WrittenBytes; - DWORD Ver = POP3_FILEVERSION; + uint32_t Ver = POP3_FILEVERSION; - if ((!WriteFile(File, (char *)&Ver, sizeof(DWORD), &WrittenBytes, nullptr)) || + if ((!WriteFile(File, (char *)&Ver, sizeof(uint32_t), &WrittenBytes, nullptr)) || (!WriteFile(File, (char *)&((HPOP3ACCOUNT)Which)->CP, sizeof(uint16_t), &WrittenBytes, nullptr))) return EACC_SYSTEM; return 0; @@ -361,12 +361,12 @@ DWORD WINAPI WritePOP3Options(HANDLE File, CAccount *Which) DWORD WINAPI ReadPOP3Options(CAccount *Which, char **Parser, char *End) { - DWORD Ver; + uint32_t Ver; #ifdef DEBUG_FILEREAD wchar_t Debug[256]; #endif - Ver = *(DWORD *)(*Parser); - (*Parser) += sizeof(DWORD); + Ver = *(uint32_t *)(*Parser); + (*Parser) += sizeof(uint32_t); if (*Parser >= End) return EACC_FILECOMPATIBILITY; if (Ver != POP3_FILEVERSION) @@ -411,7 +411,7 @@ static void SetContactStatus(CAccount *account, int status) g_plugin.setWord(account->hContact, "Status", status); } -static void PostErrorProc(HPOP3ACCOUNT ActualAccount, void *ParamToBadConnection, DWORD POP3PluginParam, BOOL UseSSL) +static void PostErrorProc(HPOP3ACCOUNT ActualAccount, void *ParamToBadConnection, uint32_t POP3PluginParam, BOOL UseSSL) { char *DataRX; @@ -430,7 +430,7 @@ static void PostErrorProc(HPOP3ACCOUNT ActualAccount, void *ParamToBadConnection ErrorCode->SystemError = ActualAccount->Client.NetClient->SystemError; } - if (POP3PluginParam == (DWORD)NULL) //if it was normal YAMN call (force check or so on) + if (POP3PluginParam == (uint32_t)NULL) //if it was normal YAMN call (force check or so on) { try { @@ -469,7 +469,7 @@ static void PostErrorProc(HPOP3ACCOUNT ActualAccount, void *ParamToBadConnection CallService(MS_YAMN_BADCONNECTION, (WPARAM)&cp, (LPARAM)YAMN_BADCONNECTIONVERSION); } - if (POP3PluginParam == (DWORD)NULL) //if it was normal YAMN call + if (POP3PluginParam == (uint32_t)NULL) //if it was normal YAMN call SetEvent(ActualAccount->UseInternetFree); } @@ -483,16 +483,16 @@ DWORD WINAPI SynchroPOP3(struct CheckParam * WhichTemp) int mboxsize, msgs, i; SYSTEMTIME now; LPVOID YAMNParam; - DWORD CheckFlags; + uint32_t CheckFlags; BOOL UsingInternet = FALSE; struct { char *ServerName; - DWORD ServerPort; + uint32_t ServerPort; char *ServerLogin; char *ServerPasswd; - DWORD Flags; - DWORD NFlags; - DWORD NNFlags; + uint32_t Flags; + uint32_t NFlags; + uint32_t NNFlags; } ActualCopied; //First, we should compare our version of CheckParam structure, but here it is not needed, because YAMN and internal plugin @@ -500,7 +500,7 @@ DWORD WINAPI SynchroPOP3(struct CheckParam * WhichTemp) // if (((struct CheckParam *)WhichTemp)->Ver != YAMN_CHECKVERSION) // { // SetEvent(((struct CheckParam *)WhichTemp)->ThreadRunningEV); //don't forget to unblock YAMN - // return (DWORD)-1; //ok, but we should return value. + // return (uint32_t)-1; //ok, but we should return value. // //When our plugin returns e.g. 0xFFFFFFFF (=-1, this is only our plugin value, YAMN does nothing with return value, // //but only tests if it is nonzero. If yes, it calls GetErrorStringFcn. We know problem occured in YAMN incompatibility // //and then we can in our GetErrorStringFcn e.g. return string "Uncompatible version of YAMN". @@ -660,7 +660,7 @@ DWORD WINAPI SynchroPOP3(struct CheckParam * WhichTemp) if (MsgQueuePtr == nullptr) { ActualAccount->SystemError = EPOP3_QUEUEALLOC; - throw (DWORD)ActualAccount->SystemError; + throw (uint32_t)ActualAccount->SystemError; } } @@ -698,7 +698,7 @@ DWORD WINAPI SynchroPOP3(struct CheckParam * WhichTemp) #ifdef DEBUG_SYNCHRO DebugLog(SynchroFile,"CheckPOP3:ActualAccountMsgsSO-write wait failed\n"); #endif - throw (DWORD)(ActualAccount->SystemError = EACC_STOPPED); + throw (uint32_t)(ActualAccount->SystemError = EACC_STOPPED); } #ifdef DEBUG_SYNCHRO DebugLog(SynchroFile,"CheckPOP3:ActualAccountMsgsSO-write enter\n"); @@ -838,7 +838,7 @@ DWORD WINAPI SynchroPOP3(struct CheckParam * WhichTemp) #ifdef DEBUG_SYNCHRO DebugLog(SynchroFile,"CheckPOP3:ActualAccountMsgsSO-write wait failed\n"); #endif - throw (DWORD)ActualAccount->SystemError == EACC_STOPPED; + throw (uint32_t)ActualAccount->SystemError == EACC_STOPPED; } #ifdef DEBUG_SYNCHRO DebugLog(SynchroFile,"CheckPOP3:ActualAccountMsgsSO-write enter\n"); @@ -901,9 +901,9 @@ DWORD WINAPI SynchroPOP3(struct CheckParam * WhichTemp) SetContactStatus(ActualAccount, ActualAccount->isCounting ? ID_STATUS_ONLINE : ID_STATUS_OFFLINE); } #ifdef DEBUG_COMM - catch(DWORD ErrorCode) + catch(uint32_t ErrorCode) #else - catch (DWORD) + catch (uint32_t) #endif { if (ActualAccount->Client.POP3Error == EPOP3_STOPPED) @@ -942,7 +942,7 @@ DWORD WINAPI SynchroPOP3(struct CheckParam * WhichTemp) ActualAccount->Client.NetClient->Disconnect(); break; default: - PostErrorProc(ActualAccount, YAMNParam, (DWORD)NULL, MyClient->SSL); //it closes internet connection too + PostErrorProc(ActualAccount, YAMNParam, (uint32_t)NULL, MyClient->SSL); //it closes internet connection too } if (UsingInternet) //if our thread still uses internet @@ -979,12 +979,12 @@ void __cdecl DeleteMailsPOP3(void *param) BOOL UsingInternet = FALSE; struct { char *ServerName; - DWORD ServerPort; + uint32_t ServerPort; char *ServerLogin; char *ServerPasswd; - DWORD Flags; - DWORD NFlags; - DWORD NNFlags; + uint32_t Flags; + uint32_t NFlags; + uint32_t NNFlags; } ActualCopied; //First, we should compare our version of DeleteParam structure, but here it is not needed, because YAMN and internal plugin @@ -992,7 +992,7 @@ void __cdecl DeleteMailsPOP3(void *param) // if (((struct DeleteParam *)WhichTemp)->Ver != YAMN_DELETEVERSION) // { // SetEvent(((struct DeleteParam *)WhichTemp)->ThreadRunningEV); //don't forget to unblock YAMN - // return (DWORD)-1; //ok, but we should return value. + // return (uint32_t)-1; //ok, but we should return value. // //When our plugin returns e.g. 0xFFFFFFFF (this is only our plugin value, YAMN does nothing with return value, // //but only tests if it is nonzero. If yes, it calls GetErrorStringFcn), we know problem occured in YAMN incompatibility // //and then we can in our GetErrorStringFcn e.g. return string "Uncompatible version of YAMN". @@ -1156,7 +1156,7 @@ void __cdecl DeleteMailsPOP3(void *param) if (MsgQueuePtr == nullptr) { ActualAccount->SystemError = EPOP3_QUEUEALLOC; - throw (DWORD)ActualAccount->SystemError; + throw (uint32_t)ActualAccount->SystemError; } } @@ -1188,7 +1188,7 @@ void __cdecl DeleteMailsPOP3(void *param) #ifdef DEBUG_SYNCHRO DebugLog(SynchroFile,"DeleteMailsPOP3:ActualAccountMsgsSO-write wait failed\n"); #endif - throw (DWORD)EACC_STOPPED; + throw (uint32_t)EACC_STOPPED; } #ifdef DEBUG_SYNCHRO DebugLog(SynchroFile,"DeleteMailsPOP3:ActualAccountMsgsSO-write enter\n"); @@ -1302,9 +1302,9 @@ void __cdecl DeleteMailsPOP3(void *param) SetContactStatus(ActualAccount, ActualAccount->isCounting ? ID_STATUS_ONLINE : ID_STATUS_OFFLINE); } #ifdef DEBUG_COMM - catch(DWORD ErrorCode) + catch(uint32_t ErrorCode) #else - catch (DWORD) + catch (uint32_t) #endif { if (ActualAccount->Client.POP3Error == EPOP3_STOPPED) @@ -1361,11 +1361,11 @@ void ExtractStat(char *stream, int *mboxsize, int *mails) while (WS(finder)) finder++; } if (1 != sscanf(finder, "%d", mails)) - throw (DWORD)EPOP3_STAT; + throw (uint32_t)EPOP3_STAT; while (!WS(finder)) finder++; while (WS(finder)) finder++; if (1 != sscanf(finder, "%d", mboxsize)) - throw (DWORD)EPOP3_STAT; + throw (uint32_t)EPOP3_STAT; } void ExtractMail(char *stream, int len, HYAMNMAIL queue) { @@ -1387,13 +1387,13 @@ void ExtractMail(char *stream, int len, HYAMNMAIL queue) #endif while (WS(finder)) finder++; //jump whitespace if (1 != sscanf(finder, "%d", &msgnr)) - throw (DWORD)EPOP3_UIDL; + throw (uint32_t)EPOP3_UIDL; #ifdef DEBUG_DECODE DebugLog(DecodeFile,"<Nr>%d</Nr>\n",msgnr); #endif // for (i=1,queueptr=queue;(queueptr->Next != NULL) && (i<msgnr);queueptr=queueptr->Next,i++); // if (i != msgnr) - // throw (DWORD)EPOP3_UIDL; + // throw (uint32_t)EPOP3_UIDL; while (!WS(finder)) finder++; //jump characters while (WS(finder)) finder++; //jump whitespace finderend = finder + 1; @@ -1432,13 +1432,13 @@ void ExtractUIDL(char *stream, int len, HYAMNMAIL queue) #endif while (WS(finder)) finder++; //jump whitespace if (1 != sscanf(finder, "%d", &msgnr)) - throw (DWORD)EPOP3_UIDL; + throw (uint32_t)EPOP3_UIDL; #ifdef DEBUG_DECODE DebugLog(DecodeFile,"<Nr>%d</Nr>\n",msgnr); #endif // for (i=1,queueptr=queue;(queueptr->Next != NULL) && (i<msgnr);queueptr=queueptr->Next,i++); // if (i != msgnr) - // throw (DWORD)EPOP3_UIDL; + // throw (uint32_t)EPOP3_UIDL; while (!WS(finder)) finder++; //jump characters while (WS(finder)) finder++; //jump whitespace finderend = finder + 1; @@ -1477,19 +1477,19 @@ void ExtractList(char *stream, int len, HYAMNMAIL queue) #endif while (WS(finder)) finder++; //jump whitespace if (1 != sscanf(finder, "%d", &msgnr)) //message nr. - throw (DWORD)EPOP3_LIST; + throw (uint32_t)EPOP3_LIST; #ifdef DEBUG_DECODE DebugLog(DecodeFile,"<Nr>%d</Nr>\n",msgnr); #endif for (i = 1, queueptr = queue; (queueptr->Next != nullptr) && (i < msgnr); queueptr = queueptr->Next, i++); if (i != msgnr) - throw (DWORD)EPOP3_LIST; + throw (uint32_t)EPOP3_LIST; while (!WS(finder)) finder++; //jump characters while (WS(finder)) finder++; //jump whitespace finderend = finder + 1; if (1 != sscanf(finder, "%u", &queueptr->MailData->Size)) - throw (DWORD)EPOP3_LIST; + throw (uint32_t)EPOP3_LIST; #ifdef DEBUG_DECODE DebugLog(DecodeFile,"<Nr>%d</Nr>\n",queueptr->MailData->Size); #endif diff --git a/protocols/YAMN/src/proto/pop3/pop3comm.h b/protocols/YAMN/src/proto/pop3/pop3comm.h index 4abae49281..f8edceb731 100644 --- a/protocols/YAMN/src/proto/pop3/pop3comm.h +++ b/protocols/YAMN/src/proto/pop3/pop3comm.h @@ -18,7 +18,7 @@ typedef struct CPOP3Account: public CAccount uint16_t CP; //access only through AccountAccessSO // In this memeber last error code is stored - DWORD SystemError; //access through UseInternetFree + uint32_t SystemError; //access through UseInternetFree // We use only counter from this object and it is # of threads waiting to work on internet. // We use event UseInternet to access critical sections. @@ -39,10 +39,10 @@ typedef struct CPOP3Account: public CAccount typedef struct POP3LayeredError { BOOL SSL; - DWORD AppError; - DWORD POP3Error; - DWORD NetError; - DWORD SystemError; + uint32_t AppError; + uint32_t POP3Error; + uint32_t NetError; + uint32_t SystemError; } POP3_ERRORCODE,*PPOP3_ERRORCODE; struct YAMNExportedFcns diff --git a/protocols/YAMN/src/proto/pop3/pop3opt.cpp b/protocols/YAMN/src/proto/pop3/pop3opt.cpp index dd85484a37..9561ba478e 100644 --- a/protocols/YAMN/src/proto/pop3/pop3opt.cpp +++ b/protocols/YAMN/src/proto/pop3/pop3opt.cpp @@ -260,7 +260,7 @@ BOOL DlgShowAccountStatus(HWND hDlg, WPARAM wParam, LPARAM lParam) { HPOP3ACCOUNT ActualAccount = (HPOP3ACCOUNT)lParam; - if ((DWORD)wParam == M_SHOWACTUAL) { + if ((uint32_t)wParam == M_SHOWACTUAL) { #ifdef DEBUG_SYNCHRO DebugLog(SynchroFile, "Options:SHOWACCOUNT:ActualAccountSO-read wait\n"); #endif @@ -294,7 +294,7 @@ BOOL DlgShowAccountPopup(HWND hDlg, WPARAM wParam, LPARAM lParam) { HPOP3ACCOUNT ActualAccount = (HPOP3ACCOUNT)lParam; - if ((DWORD)wParam == M_SHOWACTUAL) { + if ((uint32_t)wParam == M_SHOWACTUAL) { #ifdef DEBUG_SYNCHRO DebugLog(SynchroFile, "Options:SHOWACCOUNT:ActualAccountSO-read wait\n"); #endif @@ -342,7 +342,7 @@ BOOL DlgShowAccount(HWND hDlg, WPARAM wParam, LPARAM lParam) HPOP3ACCOUNT ActualAccount = (HPOP3ACCOUNT)lParam; int i; - if ((DWORD)wParam == M_SHOWACTUAL) { + if ((uint32_t)wParam == M_SHOWACTUAL) { wchar_t accstatus[256]; #ifdef DEBUG_SYNCHRO DebugLog(SynchroFile, "Options:SHOWACCOUNT:ActualAccountSO-read wait\n"); @@ -641,7 +641,7 @@ INT_PTR CALLBACK DlgProcPOP3AccOpt(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lP case WM_YAMN_CHANGETIME: if ((HPOP3ACCOUNT)wParam == ActualAccount) { wchar_t Text[256]; - mir_snwprintf(Text, TranslateT("Time left to next check [s]: %d"), (DWORD)lParam); + mir_snwprintf(Text, TranslateT("Time left to next check [s]: %d"), (uint32_t)lParam); SetDlgItemText(hDlg, IDC_STTIMELEFT, Text); } return TRUE; |