diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2015-06-08 19:41:14 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2015-06-08 19:41:14 +0000 |
commit | 038f6cc65778c17300ce5c62bb25723f7fa16714 (patch) | |
tree | 61b97dfd9eca190a017495f11e0a2c780590f6d3 /plugins/UserInfoEx/src/ctrl_contact.cpp | |
parent | 9c4ba307862a3408c67a55bd0c003b6f0f2bdc7d (diff) |
UserInfoEx:
- minor warnings fixed
git-svn-id: http://svn.miranda-ng.org/main/trunk@14067 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/UserInfoEx/src/ctrl_contact.cpp')
-rw-r--r-- | plugins/UserInfoEx/src/ctrl_contact.cpp | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/plugins/UserInfoEx/src/ctrl_contact.cpp b/plugins/UserInfoEx/src/ctrl_contact.cpp index c414a001a7..ccc30ead81 100644 --- a/plugins/UserInfoEx/src/ctrl_contact.cpp +++ b/plugins/UserInfoEx/src/ctrl_contact.cpp @@ -186,17 +186,19 @@ static INT_PTR CALLBACK DlgProc_EMail(HWND hDlg, UINT msg, WPARAM wParam, LPARAM case WM_COMMAND:
switch (LOWORD(wParam)) {
- if (HIWORD(wParam) == BN_CLICKED) {
- case IDOK:
- {
+ case IDOK: {
+ if (HIWORD(wParam) == BN_CLICKED) {
if (cbi->pszVal && cbi->ccVal > 0)
GetDlgItemText(hDlg, EDIT_EMAIL, cbi->pszVal, cbi->ccVal);
if (cbi->pszCat && cbi->ccCat > 0)
GetDlgItemText(hDlg, EDIT_CATEGORY, cbi->pszCat, cbi->ccCat);
}
- case IDCANCEL:
+ break;
+ }
+ case IDCANCEL: {
+ if (HIWORD(wParam) == BN_CLICKED)
EndDialog(hDlg, LOWORD(wParam));
- break;
+ break;
}
case EDIT_EMAIL:
if (HIWORD(wParam) == EN_UPDATE) {
@@ -288,9 +290,8 @@ INT_PTR CALLBACK DlgProc_Phone(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam case WM_COMMAND:
switch (LOWORD(wParam)) {
- if (HIWORD(wParam) == BN_CLICKED) {
- case IDOK:
- {
+ case IDOK:
+ if (HIWORD(wParam) == BN_CLICKED) {
TCHAR szText[MAXDATASIZE];
int errorPos;
@@ -307,9 +308,9 @@ INT_PTR CALLBACK DlgProc_Phone(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam }
//fall through
case IDCANCEL:
- EndDialog(hDlg, wParam);
+ if (HIWORD(wParam) == BN_CLICKED)
+ EndDialog(hDlg, wParam);
break;
- }
case EDIT_COUNTRY:
if (HIWORD(wParam) != CBN_SELCHANGE)
|