diff options
Diffstat (limited to 'protocols/WhatsApp/src/dialogs.cpp')
-rw-r--r-- | protocols/WhatsApp/src/dialogs.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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<WhatsAppProto *>(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));
|