From a6b3d77021f97fa3c801c639e1c194f111fcb521 Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Mon, 2 Apr 2012 13:15:33 +0200 Subject: [PATCH] msi: Use the state parameter passed to MsiSetMode. --- dlls/msi/install.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/msi/install.c b/dlls/msi/install.c index d78e604deda..709f4dc491a 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;