Commit a6b3d770 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

msi: Use the state parameter passed to MsiSetMode.

parent 89c80c41
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment