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) --- plugins/MenuItemEx/src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/MenuItemEx') diff --git a/plugins/MenuItemEx/src/main.cpp b/plugins/MenuItemEx/src/main.cpp index 29a0aa89df..0a14892c56 100644 --- a/plugins/MenuItemEx/src/main.cpp +++ b/plugins/MenuItemEx/src/main.cpp @@ -389,11 +389,11 @@ static INT_PTR CALLBACK AuthReqWndProc(HWND hdlg, UINT msg, WPARAM wparam, LPARA case WM_COMMAND: switch (LOWORD(wparam)) { case IDOK: - { - wchar_t tszReason[256] = { 0 }; + wchar_t tszReason[256]; GetDlgItemText(hdlg, IDC_REASON, tszReason, _countof(tszReason)); ProtoChainSend(hcontact, PSS_AUTHREQUEST, 0, (LPARAM)tszReason); - } // fall through + __fallthrough; + case IDCANCEL: DestroyWindow(hdlg); break; -- cgit v1.2.3