https://git.reactos.org/?p=reactos.git;a=commitdiff;h=883132808193743bd46f4…
commit 883132808193743bd46f42e625e543dbc1758f1a
Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
AuthorDate: Mon Jul 29 01:38:10 2019 +0200
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Mon Jul 29 01:38:43 2019 +0200
[USER32] Fix build after 51d031cc ; addendum to f21871fb (r69249) and cf98f01e
(r72650). CORE-10194
---
win32ss/user/user32/controls/button.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/win32ss/user/user32/controls/button.c
b/win32ss/user/user32/controls/button.c
index 7a4deca465d..df7fb0e7810 100644
--- a/win32ss/user/user32/controls/button.c
+++ b/win32ss/user/user32/controls/button.c
@@ -390,6 +390,7 @@ LRESULT WINAPI ButtonWndProc_common(HWND hWnd, UINT uMsg,
/* fall through */
case WM_LBUTTONUP:
#ifdef __REACTOS__
+ {
BOOL TellParent = FALSE; //// ReactOS see note below.
#endif
state = get_button_state( hWnd );
@@ -426,14 +427,15 @@ LRESULT WINAPI ButtonWndProc_common(HWND hWnd, UINT uMsg,
BUTTON_NOTIFY_PARENT(hWnd, BN_CLICKED);
#endif
}
-#ifdef __REACTOS__
- ReleaseCapture();
- if (TellParent) BUTTON_NOTIFY_PARENT(hWnd, BN_CLICKED);
-#else
+#ifndef __REACTOS__
else
{
ReleaseCapture();
}
+#else
+ ReleaseCapture();
+ if (TellParent) BUTTON_NOTIFY_PARENT(hWnd, BN_CLICKED);
+ }
#endif
break;