From 8315e2eec9f03ed2d49c309529027903f6a3d106 Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Sat, 20 Sep 2014 10:11:02 +0000 Subject: 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 --- protocols/WhatsApp/src/dialogs.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'protocols') 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); -- cgit v1.2.3