summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-07-19 18:58:23 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-07-19 18:58:23 +0000
commit23cfbe5a08ae5daf9ebee329923aea7a13fef94b (patch)
tree8bef27a2ad1af3369745687d5540709f8dec7f9b
parente69dca0ea3ae985737c4bf7470653feccea02f0a (diff)
one another fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@1051 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--plugins/MyDetails/mydetails.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/plugins/MyDetails/mydetails.cpp b/plugins/MyDetails/mydetails.cpp
index 23ec9d8b0c..2e6e87089b 100644
--- a/plugins/MyDetails/mydetails.cpp
+++ b/plugins/MyDetails/mydetails.cpp
@@ -562,12 +562,11 @@ static BOOL CALLBACK DlgProcSetStatusMessage(HWND hwndDlg, UINT msg, WPARAM wPar
TranslateDialogDefault(hwndDlg);
SendMessage(GetDlgItem(hwndDlg, IDC_STATUSMESSAGE), EM_LIMITTEXT,
MS_MYDETAILS_GETMYSTATUSMESSAGE_BUFFER_SIZE - 1, 0);
-
- WNDPROC old_proc = (WNDPROC) SetWindowLong(GetDlgItem(hwndDlg, IDC_STATUSMESSAGE),
- GWL_WNDPROC, (LONG) StatusMsgEditSubclassProc);
-
- SetWindowLong(GetDlgItem(hwndDlg, IDC_STATUSMESSAGE), GWL_USERDATA, (long) old_proc);
-
+ {
+ WNDPROC old_proc = (WNDPROC) SetWindowLong(GetDlgItem(hwndDlg, IDC_STATUSMESSAGE),
+ GWL_WNDPROC, (LONG) StatusMsgEditSubclassProc);
+ SetWindowLong(GetDlgItem(hwndDlg, IDC_STATUSMESSAGE), GWL_USERDATA, (long) old_proc);
+ }
return TRUE;
case WMU_SETDATA: