[2/4] msi: Use the state parameter passed to MsiSetMode.

Hans Leidekker hans at codeweavers.com
Mon Apr 2 06:15:33 CDT 2012


---
 dlls/msi/install.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/msi/install.c b/dlls/msi/install.c
index d78e604..709f4dc 100644
--- a/dlls/msi/install.c
+++ b/dlls/msi/install.c
@@ -814,7 +814,7 @@ UINT WINAPI MsiSetMode(MSIHANDLE hInstall, MSIRUNMODE iRunMode, BOOL fState)
     switch (iRunMode)
     {
     case MSIRUNMODE_REBOOTATEND:
-        package->need_reboot_at_end = 1;
+        package->need_reboot_at_end = (fState != 0);
         r = ERROR_SUCCESS;
         break;
 
-- 
1.7.5.4







More information about the wine-patches mailing list