diff options
author | Rozhuk Ivan <rozhuk.im@gmail.com> | 2014-11-30 18:33:56 +0000 |
---|---|---|
committer | Rozhuk Ivan <rozhuk.im@gmail.com> | 2014-11-30 18:33:56 +0000 |
commit | 4f0e30cdf56fbafdf955bbe8b93930bab9e39bd0 (patch) | |
tree | ded36ec10c55fb5d33c8d2e471ec808eeb058a04 /protocols/WhatsApp/src/dialogs.cpp | |
parent | 237d02ebbabbedfb8b33160ebfb5250bbd491eca (diff) |
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
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));
|