From 4f0e30cdf56fbafdf955bbe8b93930bab9e39bd0 Mon Sep 17 00:00:00 2001 From: Rozhuk Ivan Date: Sun, 30 Nov 2014 18:33:56 +0000 Subject: Fix buf size for Get/Set text, open/save file name SMS: SIZE_T -> size_t MRA: small code cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@11175 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/WhatsApp/src/dialogs.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'protocols/WhatsApp') diff --git a/protocols/WhatsApp/src/dialogs.cpp b/protocols/WhatsApp/src/dialogs.cpp index 9392737ecf..06bb5c1371 100644 --- a/protocols/WhatsApp/src/dialogs.cpp +++ b/protocols/WhatsApp/src/dialogs.cpp @@ -53,9 +53,9 @@ INT_PTR CALLBACK WhatsAppAccountProc(HWND hwndDlg, UINT message, WPARAM wparam, string password; char cc[5]; - GetDlgItemTextA(hwndDlg, IDC_CC, cc, sizeof(cc)); char number[128]; - GetDlgItemTextA(hwndDlg, IDC_LOGIN, number, sizeof(number)); + GetDlgItemTextA(hwndDlg, IDC_CC, cc, SIZEOF(cc)); + GetDlgItemTextA(hwndDlg, IDC_LOGIN, number, SIZEOF(number)); if (LOWORD(wparam) == IDC_BUTTON_REQUEST_CODE) { if (IDYES == MessageBox(NULL, TranslateT(szAskSendSms), PRODUCT_NAME, MB_YESNO)) { @@ -107,13 +107,13 @@ INT_PTR CALLBACK WhatsAppAccountProc(HWND hwndDlg, UINT message, WPARAM wparam, proto = reinterpret_cast(GetWindowLongPtr(hwndDlg, GWLP_USERDATA)); char str[128]; - GetDlgItemTextA(hwndDlg, IDC_CC, str, sizeof(str)); + GetDlgItemTextA(hwndDlg, IDC_CC, str, SIZEOF(str)); db_set_s(0, proto->ModuleName(), WHATSAPP_KEY_CC, str); - GetDlgItemTextA(hwndDlg, IDC_LOGIN, str, sizeof(str)); + GetDlgItemTextA(hwndDlg, IDC_LOGIN, str, SIZEOF(str)); db_set_s(0, proto->ModuleName(), WHATSAPP_KEY_LOGIN, str); - GetDlgItemTextA(hwndDlg, IDC_NICK, str, sizeof(str)); + GetDlgItemTextA(hwndDlg, IDC_NICK, str, SIZEOF(str)); db_set_s(0, proto->ModuleName(), WHATSAPP_KEY_NICK, str); db_set_b(0, proto->ModuleName(), WHATSAPP_KEY_SSL, IsDlgButtonChecked(hwndDlg, IDC_SSL)); -- cgit v1.2.3