msi: Use the state parameter passed to MsiSetMode.
This commit is contained in:
parent
89c80c41ea
commit
a6b3d77021
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue