[PATCH v2 3/3] msi: Show messageboxes as modal

Fabian Maurer dark.shadow4 at web.de
Sat Sep 11 15:12:24 CDT 2021


This last patch is a bit different.
It fixes an issue, but I don't know enough about msi internals to tell how correct it is.
If you don't mind, please take a look :)

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51718
---
 dlls/msi/dialog.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/dlls/msi/dialog.c b/dlls/msi/dialog.c
index 193ab84afd4..8f5e12e0d84 100644
--- a/dlls/msi/dialog.c
+++ b/dlls/msi/dialog.c
@@ -3885,6 +3885,10 @@ static LRESULT WINAPI MSIDialog_WndProc( HWND hwnd, UINT msg,
         {
             EnableWindow(dialog->parent->hwnd, TRUE);
         }
+        if (gUIhwnd == hwnd)
+        {
+            gUIhwnd = NULL;
+        }
         dialog->hwnd = NULL;
         return 0;
     case WM_NOTIFY:
@@ -3932,6 +3936,11 @@ static UINT dialog_run_message_loop( msi_dialog *dialog )
         return ERROR_FUNCTION_FAILED;
     }

+    if (!dialog->parent && !gUIhwnd)
+    {
+        gUIhwnd = hwnd;
+    }
+
     if (parent)
     {
         EnableWindow(parent, FALSE);
--
2.33.0




More information about the wine-devel mailing list