From 156e56230c1819245c0d9165629f8077b6417167 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 8 May 2018 20:23:43 +0200 Subject: code cleaning (using new MS coding style) --- src/core/stduserinfo/src/contactinfo.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/core/stduserinfo') diff --git a/src/core/stduserinfo/src/contactinfo.cpp b/src/core/stduserinfo/src/contactinfo.cpp index 4a1c8ba273..41a5c6331e 100644 --- a/src/core/stduserinfo/src/contactinfo.cpp +++ b/src/core/stduserinfo/src/contactinfo.cpp @@ -42,9 +42,12 @@ static INT_PTR CALLBACK EditUserEmailDlgProc(HWND hwndDlg, UINT msg, WPARAM wPar switch (LOWORD(wParam)) { case IDOK: GetDlgItemTextA(hwndDlg, IDC_EMAIL, (char*)GetWindowLongPtr(hwndDlg, GWLP_USERDATA), 256); - //fall through + __fallthrough; + case IDCANCEL: EndDialog(hwndDlg, wParam); + __fallthrough; + case IDC_EMAIL: if (HIWORD(wParam) == EN_CHANGE) EnableWindow(GetDlgItem(hwndDlg, IDOK), GetWindowTextLength(GetDlgItem(hwndDlg, IDC_EMAIL))); @@ -100,9 +103,12 @@ static INT_PTR CALLBACK EditUserPhoneDlgProc(HWND hwndDlg, UINT msg, WPARAM wPar } if (IsDlgButtonChecked(hwndDlg, IDC_SMS)) mir_strcat(szText, " SMS"); } - //fall through + __fallthrough; + case IDCANCEL: EndDialog(hwndDlg, wParam); + __fallthrough; + case IDC_COUNTRY: if (HIWORD(wParam) != CBN_SELCHANGE) break; -- cgit v1.2.3