>From a16bc2e60d8e3ad4e289675c2702fd85450e79cd Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <nsivov@codeweavers.com>
Date: Mon, 26 Dec 2011 01:20:54 +0300
Subject: [PATCH 2/2] Block selection change depending on TCN_SELCHANGING result

---
 dlls/comctl32/tab.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/comctl32/tab.c b/dlls/comctl32/tab.c
index 374d4ee..ad27b8a 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);
-- 
1.5.6.5

