[USER32] Use the correct __REACTOS__ define.

This commit is contained in:
Hermès Bélusca-Maïto 2019-07-29 00:32:14 +02:00
parent bdb60afc86
commit 51d031cc5d
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -389,7 +389,7 @@ LRESULT WINAPI ButtonWndProc_common(HWND hWnd, UINT uMsg,
break;
/* fall through */
case WM_LBUTTONUP:
#ifdef _REACTOS_
#ifdef __REACTOS__
BOOL TellParent = FALSE; //// ReactOS see note below.
#endif
state = get_button_state( hWnd );
@ -419,14 +419,14 @@ LRESULT WINAPI ButtonWndProc_common(HWND hWnd, UINT uMsg,
(state & BST_INDETERMINATE) ? 0 : ((state & 3) + 1), 0 );
break;
}
#ifdef _REACTOS_
#ifdef __REACTOS__
TellParent = TRUE; // <---- Fix CORE-10194, Notify parent after capture is released.
#else
ReleaseCapture();
BUTTON_NOTIFY_PARENT(hWnd, BN_CLICKED);
#endif
}
#ifdef _REACTOS_
#ifdef __REACTOS__
ReleaseCapture();
if (TellParent) BUTTON_NOTIFY_PARENT(hWnd, BN_CLICKED);
#else