From fade32b515a6b60d224e61e2ffaf0155888a0455 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Mon, 26 Dec 2011 01:20:54 +0300 Subject: [PATCH] comctl32: Block selection change depending on TCN_SELCHANGING result. --- dlls/comctl32/tab.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/comctl32/tab.c b/dlls/comctl32/tab.c index 374d4ee2776..ad27b8a18d5 100644 --- a/dlls/comctl32/tab.c +++ b/dlls/comctl32/tab.c @@ -684,7 +684,8 @@ TAB_LButtonDown (TAB_INFO *infoPtr, WPARAM wParam, LPARAM lParam) break; } - TAB_SendSimpleNotify(infoPtr, TCN_SELCHANGING); + if (TAB_SendSimpleNotify(infoPtr, TCN_SELCHANGING)) + return 0; if (pressed) TAB_DeselectAll (infoPtr, FALSE);