[4/4] msi: Suspend the installation if an action sets MSIRUNMODE_REBOOTNOW.

Hans Leidekker hans at codeweavers.com
Mon Apr 2 06:16:32 CDT 2012


---
 dlls/msi/action.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/dlls/msi/action.c b/dlls/msi/action.c
index 5ecf8a5..5e9ef35 100644
--- a/dlls/msi/action.c
+++ b/dlls/msi/action.c
@@ -536,6 +536,12 @@ static UINT ITERATE_Actions(MSIRECORD *row, LPVOID param)
     if (rc != ERROR_SUCCESS)
         ERR("Execution halted, action %s returned %i\n", debugstr_w(action), rc);
 
+    if (package->need_reboot_now)
+    {
+        TRACE("action %s asked for immediate reboot, suspending installation\n",
+              debugstr_w(action));
+        rc = ACTION_ForceReboot( package );
+    }
     return rc;
 }
 
-- 
1.7.5.4






More information about the wine-patches mailing list