EnableWindow doesn't release the capture of a child window.

This commit is contained in:
Pascal Lessard 1999-06-26 10:17:10 +00:00 committed by Alexandre Julliard
parent 16e278c3d5
commit 31c58546c9
1 changed files with 1 additions and 1 deletions

View File

@ -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 */
}