diff options
author | George Hazan <george.hazan@gmail.com> | 2013-07-21 09:02:17 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-07-21 09:02:17 +0000 |
commit | 48cc535107e4d4cabbfd162a32896509df3b7ce6 (patch) | |
tree | 9ccf97d9eeab8c475e6edfb11eb5524be21a22cf /plugins/Clist_nicer/src/CLCButton.cpp | |
parent | 4e96184219994a82bc34d85345aa091863d4acbd (diff) |
clist_nicer: correct processing of third-party ttb buttons' clicks
git-svn-id: http://svn.miranda-ng.org/main/trunk@5437 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_nicer/src/CLCButton.cpp')
-rw-r--r-- | plugins/Clist_nicer/src/CLCButton.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Clist_nicer/src/CLCButton.cpp b/plugins/Clist_nicer/src/CLCButton.cpp index dc18a6d6b2..9024f08c5a 100644 --- a/plugins/Clist_nicer/src/CLCButton.cpp +++ b/plugins/Clist_nicer/src/CLCButton.cpp @@ -457,7 +457,7 @@ static LRESULT CALLBACK TSButtonWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPAR break;
case WM_LBUTTONDOWN:
- if ( !bct->iCtrlID) return 0;
+ if (!bct->iCtrlID) break;
if (bct->stateId != PBS_DISABLED && bct->stateId != PBS_PRESSED) {
bct->stateId = PBS_PRESSED;
InvalidateRect(bct->hwnd, NULL, TRUE);
@@ -470,7 +470,7 @@ static LRESULT CALLBACK TSButtonWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPAR return 1;
case WM_LBUTTONUP:
- if ( !bct->iCtrlID) return 0;
+ if (!bct->iCtrlID) break;
if (bct->bIsPushBtn)
bct->bIsPushed = !bct->bIsPushed;
|