From 31c58546c919b7dc3644b8d4e0aee1500bec3668 Mon Sep 17 00:00:00 2001 From: Pascal Lessard Date: Sat, 26 Jun 1999 10:17:10 +0000 Subject: [PATCH] EnableWindow doesn't release the capture of a child window. --- windows/win.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows/win.c b/windows/win.c index 4c09b36ec73..585fd084758 100644 --- a/windows/win.c +++ b/windows/win.c @@ -1747,7 +1747,7 @@ BOOL WINAPI EnableWindow( HWND hwnd, BOOL enable ) { SetFocus( 0 ); /* A disabled window can't have the focus */ } - if ((hwnd == GetCapture()) || IsChild( hwnd, GetCapture() )) + if (hwnd == GetCapture()) { ReleaseCapture(); /* A disabled window can't capture the mouse */ } -- 2.11.4.GIT