user32: Don't enable owner in DIALOG_DoDialogBox.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2016-04-06 14:41:10 +02:00 committed by Alexandre Julliard
parent 2f8f9d20aa
commit fc4b906d78
2 changed files with 0 additions and 3 deletions

View file

@ -241,7 +241,6 @@ typedef struct tagDIALOGINFO
} DIALOGINFO;
#define DF_END 0x0001
#define DF_OWNERENABLED 0x0002
extern DIALOGINFO *DIALOG_get_info( HWND hwnd, BOOL create ) DECLSPEC_HIDDEN;
extern INT DIALOG_DoDialogBox( HWND hwnd ) DECLSPEC_HIDDEN;

View file

@ -601,7 +601,6 @@ static HWND DIALOG_CreateIndirect( HINSTANCE hInst, LPCVOID dlgTemplate,
}
if (IsWindowEnabled( owner ))
{
flags |= DF_OWNERENABLED;
disabled_owner = owner;
EnableWindow( disabled_owner, FALSE );
}
@ -822,7 +821,6 @@ INT DIALOG_DoDialogBox( HWND hwnd )
}
}
}
if (dlgInfo->flags & DF_OWNERENABLED) EnableWindow( owner, TRUE );
retval = dlgInfo->idResult;
DestroyWindow( hwnd );
return retval;