summaryrefslogtreecommitdiff
path: root/plugins/BasicHistory/src/HotkeyHelper.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-08-31 12:19:31 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-08-31 12:19:31 +0000
commitca942b88c295830544e03804666229e0e955f64b (patch)
treee19134219dae9befdf0b5cb1764873830058d5ad /plugins/BasicHistory/src/HotkeyHelper.cpp
parent75a38acd5c2a1e0abd08d3458d36a452dfd0879a (diff)
- memory leak fixed;
- code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@17226 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/BasicHistory/src/HotkeyHelper.cpp')
-rw-r--r--plugins/BasicHistory/src/HotkeyHelper.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/BasicHistory/src/HotkeyHelper.cpp b/plugins/BasicHistory/src/HotkeyHelper.cpp
index ba2e2195d2..8a9441e8b3 100644
--- a/plugins/BasicHistory/src/HotkeyHelper.cpp
+++ b/plugins/BasicHistory/src/HotkeyHelper.cpp
@@ -40,8 +40,7 @@ static LRESULT CALLBACK HotkeySubclassProc(HWND hwnd, UINT msg, WPARAM wParam, L
break;
case WM_KEYUP:
case WM_SYSKEYUP:
- if (isPresed)
- {
+ if (isPresed) {
isPresed = false;
return 0;
}
@@ -58,8 +57,7 @@ static LRESULT CALLBACK HotkeySubclassProc(HWND hwnd, UINT msg, WPARAM wParam, L
filter.nmhdr.hwndFrom = hwnd;
filter.nmhdr.code = EN_MSGFILTER;
filter.nmhdr.idFrom = GetDlgCtrlID(hwnd);
- if (SendMessage(hwndParent, WM_NOTIFY, NULL, (LPARAM)&filter))
- {
+ if (SendMessage(hwndParent, WM_NOTIFY, NULL, (LPARAM)&filter)) {
isPresed = true;
return 0;
}