[PATCH 2/3] msi: Disable parent dialogs while modal dialog is open
Fabian Maurer
dark.shadow4 at web.de
Fri Sep 3 13:33:25 CDT 2021
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51717
Signed-off-by: Fabian Maurer <dark.shadow4 at web.de>
---
dlls/msi/dialog.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/dlls/msi/dialog.c b/dlls/msi/dialog.c
index e6048ee6a22..3ef626a1dfa 100644
--- a/dlls/msi/dialog.c
+++ b/dlls/msi/dialog.c
@@ -3884,6 +3884,10 @@ static LRESULT WINAPI MSIDialog_WndProc( HWND hwnd, UINT msg,
return SendMessageW( (HWND) lParam, WM_CTLCOLORSTATIC, wParam, lParam );
case WM_DESTROY:
+ if (parent_level > 1)
+ {
+ EnableWindow(handle_parent_dialog[parent_level - 2], TRUE);
+ }
if (parent_level > 0)
{
handle_parent_dialog[parent_level - 1] = NULL;
@@ -3942,6 +3946,11 @@ static UINT dialog_run_message_loop( msi_dialog *dialog )
parent_level++;
}
+ if (parent)
+ {
+ EnableWindow(parent, FALSE);
+ }
+
ShowWindow( hwnd, SW_SHOW );
/* UpdateWindow( hwnd ); - and causes the transparent static controls not to paint */
--
2.33.0
More information about the wine-devel
mailing list