From 6183362250af373372830fbd5d4d952b0038bbfc Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 20 Oct 2013 17:38:06 +0000 Subject: more warning fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@6558 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/AimOscar/src/ui.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'protocols') 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); -- cgit v1.2.3