mirror of
https://github.com/reactos/reactos.git
synced 2026-06-02 01:11:03 +08:00
[User32] Fix Dialog Hang
Patch by JIRA contributor I_Kill_Bugs. See CORE-5078. Also: https://bugs.winehq.org/show_bug.cgi?id=48749
This commit is contained in:
@@ -936,8 +936,14 @@ static HWND DIALOG_CreateIndirect( HINSTANCE hInst, LPCVOID dlgTemplate,
|
||||
|
||||
if (IsWindowEnabled( owner ))
|
||||
{
|
||||
HWND captured = NULL;
|
||||
disabled_owner = owner;
|
||||
EnableWindow( disabled_owner, FALSE );
|
||||
|
||||
captured = GetCapture();
|
||||
|
||||
if (captured)
|
||||
SendMessageW(captured, WM_CANCELMODE, 0, 0);
|
||||
}
|
||||
}
|
||||
*modal_owner = owner;
|
||||
|
||||
Reference in New Issue
Block a user