summaryrefslogtreecommitdiff
path: root/protocols/AimOscar/src/ui.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-10-20 17:38:06 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-10-20 17:38:06 +0000
commit6183362250af373372830fbd5d4d952b0038bbfc (patch)
tree986e7c937720b5d93e00dcc2e7ee3b2f47a7286d /protocols/AimOscar/src/ui.cpp
parent7e4a5794928702bf435f3d7be339a6c553fe618a (diff)
more warning fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@6558 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/AimOscar/src/ui.cpp')
-rw-r--r--protocols/AimOscar/src/ui.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/protocols/AimOscar/src/ui.cpp b/protocols/AimOscar/src/ui.cpp
index fe5b2f256f..ea80e9be76 100644
--- a/protocols/AimOscar/src/ui.cpp
+++ b/protocols/AimOscar/src/ui.cpp
@@ -714,7 +714,7 @@ INT_PTR CALLBACK admin_dialog(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPar
GetDlgItemTextA(hwndDlg, IDC_CPW, cpw, sizeof(cpw));
GetDlgItemTextA(hwndDlg, IDC_NPW1, npw1, sizeof(npw1));
GetDlgItemTextA(hwndDlg, IDC_NPW2, npw2, sizeof(npw2));
- if (strlen(cpw) > 0 && strlen(npw1) > 0 && strlen(npw2) > 0)
+ if (cpw[0] != 0 && npw1[0] != 0 && npw2[0] != 0)
{
// AOL only requires that you send the current password and a (single) new password.
// Let's allow the client to type (two) new passwords incase they make a mistake so we
@@ -873,7 +873,7 @@ static INT_PTR CALLBACK options_dialog(HWND hwndDlg, UINT msg, WPARAM wParam, LP
char str[128];
//SN
GetDlgItemTextA(hwndDlg, IDC_SN, str, sizeof(str));
- if (strlen(str)>0)
+ if (str[0] != 0)
ppro->setString(AIM_KEY_SN, str);
else
ppro->delSetting(AIM_KEY_SN);
@@ -891,7 +891,7 @@ static INT_PTR CALLBACK options_dialog(HWND hwndDlg, UINT msg, WPARAM wParam, LP
//PW
GetDlgItemTextA(hwndDlg, IDC_PW, str, sizeof(str));
- if (strlen(str)>0)
+ if (str[0] != 0)
{
CallService(MS_DB_CRYPT_ENCODESTRING, sizeof(str), (LPARAM) str);
ppro->setString(AIM_KEY_PW, str);
@@ -901,7 +901,7 @@ static INT_PTR CALLBACK options_dialog(HWND hwndDlg, UINT msg, WPARAM wParam, LP
//HN
GetDlgItemTextA(hwndDlg, IDC_HN, str, sizeof(str));
- if (strlen(str)>0 && strcmp(str, AIM_DEFAULT_SERVER))
+ if (str[0] != 0 && strcmp(str, AIM_DEFAULT_SERVER))
ppro->setString(AIM_KEY_HN, str);
else
ppro->delSetting(AIM_KEY_HN);
@@ -1329,7 +1329,7 @@ INT_PTR CALLBACK join_chat_dialog(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM
case IDOK:
char room[128];
GetDlgItemTextA(hwndDlg, IDC_ROOM, room, sizeof(room));
- if (ppro->state==1 && strlen(room) > 0)
+ if (ppro->state == 1 && room[0] != 0)
{
chatnav_param* par = new chatnav_param(room, 4);
ppro->ForkThread(&CAimProto::chatnav_request_thread, par);