Commit 31c58546 authored by Pascal Lessard's avatar Pascal Lessard Committed by Alexandre Julliard

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

parent 16e278c3
......@@ -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 */
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment