From 159b565b390687258ee65a3b66596e118752063c Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Fri, 22 May 2015 12:33:13 +0000 Subject: replace strcmp to mir_strcmp git-svn-id: http://svn.miranda-ng.org/main/trunk@13752 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/YAMN/src/account.cpp | 2 +- plugins/YAMN/src/browser/mailbrowser.cpp | 8 ++++---- plugins/YAMN/src/mails/decode.cpp | 2 +- plugins/YAMN/src/mails/mails.cpp | 2 +- plugins/YAMN/src/proto/pop3/pop3comm.cpp | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) (limited to 'plugins/YAMN/src') diff --git a/plugins/YAMN/src/account.cpp b/plugins/YAMN/src/account.cpp index 590c812355..db7ce8166b 100644 --- a/plugins/YAMN/src/account.cpp +++ b/plugins/YAMN/src/account.cpp @@ -1006,7 +1006,7 @@ INT_PTR FindAccountByNameSvc(WPARAM wParam, LPARAM lParam) DebugLog(SynchroFile,"FindAccountByName:AccountBrowserSO-read enter\n"); #endif for (Finder = Plugin->FirstAccount; Finder != NULL; Finder = Finder->Next) - if ((Finder->Name != NULL) && (0 == strcmp(SearchedAccount, Finder->Name))) + if ((Finder->Name != NULL) && (0 == mir_strcmp(SearchedAccount, Finder->Name))) break; #ifdef DEBUG_SYNCHRO DebugLog(SynchroFile,"FindAccountByName:AccountBrowserSO-read done\n"); diff --git a/plugins/YAMN/src/browser/mailbrowser.cpp b/plugins/YAMN/src/browser/mailbrowser.cpp index e15d71731d..ece3465f5f 100644 --- a/plugins/YAMN/src/browser/mailbrowser.cpp +++ b/plugins/YAMN/src/browser/mailbrowser.cpp @@ -1214,7 +1214,7 @@ int CALLBACK ListViewCompareProc(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSo str2 = Header2.From; else str2 = Header2.FromNick; - nResult = strcmp(str1, str2); + nResult = mir_strcmp(str1, str2); if (bFrom) nResult = -nResult; break; @@ -1227,7 +1227,7 @@ int CALLBACK ListViewCompareProc(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSo str2 = " "; else str2 = Header2.Subject; - nResult = strcmp(str1, str2); + nResult = mir_strcmp(str1, str2); if (bSub) nResult = -nResult; break; @@ -1258,7 +1258,7 @@ int CALLBACK ListViewCompareProc(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSo if (Header2.Subject == NULL) str2 = " "; else str2 = Header2.Subject; - nResult = strcmp(str1, str2); + nResult = mir_strcmp(str1, str2); break; } //MessageBox(NULL,str1,str2,0); @@ -1390,7 +1390,7 @@ INT_PTR CALLBACK DlgProcYAMNShowMessage(HWND hDlg, UINT msg, WPARAM wParam, LPAR Subj = new WCHAR[wcslen(str2) + 1]; wcscpy(Subj, str2); } - //if (!hasBody) if (!strcmp(Header->name,"Body")) hasBody = true; + //if (!hasBody) if (!mir_strcmp(Header->name,"Body")) hasBody = true; int count = 0; WCHAR **split = 0; int ofs = 0; while (str2[ofs]) { diff --git a/plugins/YAMN/src/mails/decode.cpp b/plugins/YAMN/src/mails/decode.cpp index f2a0837e7b..6ca2a0238b 100644 --- a/plugins/YAMN/src/mails/decode.cpp +++ b/plugins/YAMN/src/mails/decode.cpp @@ -229,7 +229,7 @@ int GetCharsetFromString(char *input,size_t size) for (int i=0;iID==NULL) //simply ignore the message, that has not filled its ID continue; - if (0==strcmp(Parser->ID,Finder->ID)) //search for equal message in new queue + if (0==mir_strcmp(Parser->ID,Finder->ID)) //search for equal message in new queue break; } if (Parser != NULL) //found equal message in new queue diff --git a/plugins/YAMN/src/proto/pop3/pop3comm.cpp b/plugins/YAMN/src/proto/pop3/pop3comm.cpp index 4bebbbbd91..d67712eb0a 100644 --- a/plugins/YAMN/src/proto/pop3/pop3comm.cpp +++ b/plugins/YAMN/src/proto/pop3/pop3comm.cpp @@ -286,7 +286,7 @@ int RegisterPOP3Plugin(WPARAM, LPARAM) Finder->hContact = NULL; for (MCONTACT hContact = db_find_first(YAMN_DBMODULE); hContact; hContact = db_find_next(hContact, YAMN_DBMODULE)) { if (!db_get_s(hContact, YAMN_DBMODULE, "Id", &dbv)) { - if (strcmp(dbv.pszVal, Finder->Name) == 0) { + if (mir_strcmp(dbv.pszVal, Finder->Name) == 0) { Finder->hContact = hContact; db_set_w(Finder->hContact, YAMN_DBMODULE, "Status", ID_STATUS_ONLINE); db_set_s(Finder->hContact, "CList", "StatusMsg", Translate("No new mail message")); @@ -711,7 +711,7 @@ DWORD WINAPI SynchroPOP3(struct CheckParam * WhichTemp) if (MsgQueuePtr->Flags&YAMN_MSG_BODYREQUESTED) { HYAMNMAIL NewMsgsPtr = NULL; for (NewMsgsPtr = (HYAMNMAIL)NewMails; NewMsgsPtr != NULL; NewMsgsPtr = NewMsgsPtr->Next) { - if (!strcmp(MsgQueuePtr->ID, NewMsgsPtr->ID)) { + if (!mir_strcmp(MsgQueuePtr->ID, NewMsgsPtr->ID)) { TCHAR accstatus[512]; mir_sntprintf(accstatus, SIZEOF(accstatus), TranslateT("Reading body %s"), NewMsgsPtr->ID); SetAccountStatus(ActualAccount, accstatus); -- cgit v1.2.3