summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2014-09-20 10:11:02 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2014-09-20 10:11:02 +0000
commit8315e2eec9f03ed2d49c309529027903f6a3d106 (patch)
tree861e5b4e9bdbf5c2137eaee0d4acf411362aa7ec /protocols
parent192a0a982155515379580384e7b713b7e133debc (diff)
SMS received code entering fix (second field) (patch by Mataes)
git-svn-id: http://svn.miranda-ng.org/main/trunk@10534 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r--protocols/WhatsApp/src/dialogs.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/protocols/WhatsApp/src/dialogs.cpp b/protocols/WhatsApp/src/dialogs.cpp
index 6a1802ec22..f2b1c94025 100644
--- a/protocols/WhatsApp/src/dialogs.cpp
+++ b/protocols/WhatsApp/src/dialogs.cpp
@@ -72,8 +72,10 @@ INT_PTR CALLBACK WhatsAppAccountProc(HWND hwnd, UINT message, WPARAM wparam, LPA
}
}
else if (LOWORD(wparam) == IDC_BUTTON_REGISTER) {
- char code[100];
+ char code[100], str[10];
GetDlgItemTextA(hwnd, IDC_PW, code, sizeof(code));
+ GetDlgItemTextA(hwnd, IDC_PW2, str, sizeof(str));
+ strcat(code, str);
if (strlen(code) != 6) {
MessageBox(NULL, TranslateT("Please correctly specify your registration code received by SMS"), PRODUCT_NAME, MB_ICONEXCLAMATION);