Author: jimtabor
Date: Wed Sep 16 04:15:35 2015
New Revision: 69249
URL:
http://svn.reactos.org/svn/reactos?rev=69249&view=rev
Log:
[User32]
- Fix wine sync, Notify parent after capture is released, see CORE-10194.
Modified:
trunk/reactos/win32ss/user/user32/controls/button.c
Modified: trunk/reactos/win32ss/user/user32/controls/button.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/user32/contro…
==============================================================================
--- trunk/reactos/win32ss/user/user32/controls/button.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/user32/controls/button.c [iso-8859-1] Wed Sep 16 04:15:35
2015
@@ -398,6 +398,8 @@
break;
/* fall through */
case WM_LBUTTONUP:
+ {
+ BOOL TellParent = FALSE; //// ReactOS see note below.
state = get_button_state( hWnd );
if (!(state & BUTTON_BTNPRESSED)) break;
state &= BUTTON_NSTATES;
@@ -425,9 +427,11 @@
(state & BST_INDETERMINATE) ? 0 : ((state & 3) +
1), 0 );
break;
}
- BUTTON_NOTIFY_PARENT(hWnd, BN_CLICKED);
+ TellParent = TRUE; // <---- Fix CORE-10194, Notify parent after capture is
released.
}
ReleaseCapture();
+ if (TellParent) BUTTON_NOTIFY_PARENT(hWnd, BN_CLICKED);
+ }
break;
case WM_CAPTURECHANGED: