From 48cc535107e4d4cabbfd162a32896509df3b7ce6 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 21 Jul 2013 09:02:17 +0000 Subject: 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 --- plugins/Clist_nicer/src/CLCButton.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/Clist_nicer/src/CLCButton.cpp') 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; -- cgit v1.2.3