From 5344d70c163ce0b2afaeff29febd82d68f5d617e Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Tue, 7 Sep 2004 19:33:11 +0000 Subject: [PATCH] Reset BUTTON_HASFOCUS state in WM_KILLFOCUS handler before calling ReleaseCapture. --- dlls/user/button.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/user/button.c b/dlls/user/button.c index 705ac70ff32..b785a5d000d 100644 --- a/dlls/user/button.c +++ b/dlls/user/button.c @@ -364,11 +364,11 @@ static LRESULT WINAPI ButtonWndProc_common(HWND hWnd, UINT uMsg, case WM_KILLFOCUS: state = get_button_state( hWnd ); - if ((state & BUTTON_BTNPRESSED) && GetCapture() == hWnd) - ReleaseCapture(); - set_button_state( hWnd, state & ~BUTTON_HASFOCUS ); paint_button( hWnd, btn_type, ODA_FOCUS ); + + if ((state & BUTTON_BTNPRESSED) && GetCapture() == hWnd) + ReleaseCapture(); break; case WM_SYSCOLORCHANGE: -- 2.11.4.GIT