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/AVS/src/acc.cpp | 4 ++-- plugins/AVS/src/main.cpp | 2 +- plugins/AVS/src/options.cpp | 2 +- plugins/AVS/src/poll.cpp | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/AVS/src') diff --git a/plugins/AVS/src/acc.cpp b/plugins/AVS/src/acc.cpp index 256f92936d..b58e9922f0 100644 --- a/plugins/AVS/src/acc.cpp +++ b/plugins/AVS/src/acc.cpp @@ -432,7 +432,7 @@ static LRESULT CALLBACK ACCWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lP case AVATAR_SETPROTOCOL: szProto = (lParam == NULL) ? "" : (char*)lParam; - if (data->hContact != 0 || strcmp(szProto, data->proto)) { + if (data->hContact != 0 || mir_strcmp(szProto, data->proto)) { DestroyAnimation(data); data->hContact = NULL; @@ -540,7 +540,7 @@ static LRESULT CALLBACK ACCWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lP break; case DM_MYAVATARCHANGED: - if (data->hContact == NULL && strcmp(data->proto, (char*)wParam) == 0) { + if (data->hContact == NULL && mir_strcmp(data->proto, (char*)wParam) == 0) { DestroyAnimation(data); StartAnimation(data); diff --git a/plugins/AVS/src/main.cpp b/plugins/AVS/src/main.cpp index 1c33df43ae..247872ac8c 100644 --- a/plugins/AVS/src/main.cpp +++ b/plugins/AVS/src/main.cpp @@ -202,7 +202,7 @@ static int ContactSettingChanged(WPARAM hContact, LPARAM lParam) return 0; if (hContact == 0) - if (!strcmp(cws->szSetting, "AvatarFile") || !strcmp(cws->szSetting, "PictObject") || !strcmp(cws->szSetting, "AvatarHash") || !strcmp(cws->szSetting, "AvatarSaved")) + if (!mir_strcmp(cws->szSetting, "AvatarFile") || !mir_strcmp(cws->szSetting, "PictObject") || !mir_strcmp(cws->szSetting, "AvatarHash") || !mir_strcmp(cws->szSetting, "AvatarSaved")) ReportMyAvatarChanged((WPARAM)cws->szModule, 0); return 0; diff --git a/plugins/AVS/src/options.cpp b/plugins/AVS/src/options.cpp index 19f2068aaa..a0c3d1a6b3 100644 --- a/plugins/AVS/src/options.cpp +++ b/plugins/AVS/src/options.cpp @@ -164,7 +164,7 @@ static void SetProtoPic(char *szProto) if (mir_strlen(p.szProtoname) == 0) break; - if (!strcmp(p.szProtoname, szProto) && mir_strlen(p.szProtoname) == mir_strlen(szProto)) { + if (!mir_strcmp(p.szProtoname, szProto) && mir_strlen(p.szProtoname) == mir_strlen(szProto)) { if (p.hbmPic != 0) DeleteObject(p.hbmPic); memset(&p, 0, sizeof(avatarCacheEntry)); diff --git a/plugins/AVS/src/poll.cpp b/plugins/AVS/src/poll.cpp index 4b4c5511e3..4911fb0e41 100644 --- a/plugins/AVS/src/poll.cpp +++ b/plugins/AVS/src/poll.cpp @@ -81,7 +81,7 @@ static BOOL PollProtocolCanHaveAvatar(const char *szProto) { int pCaps = CallProtoService(szProto, PS_GETCAPS, PFLAGNUM_4, 0); int status = CallProtoService(szProto, PS_GETSTATUS, 0, 0); - return (pCaps & PF4_AVATARS) && strcmp(META_PROTO, szProto) && + return (pCaps & PF4_AVATARS) && mir_strcmp(META_PROTO, szProto) && ((status > ID_STATUS_OFFLINE && status != ID_STATUS_INVISIBLE) || Proto_IsFetchingWhenProtoNotVisibleAllowed(szProto)); } -- cgit v1.2.3