msi: Use the state parameter passed to MsiSetMode.

This commit is contained in:
Hans Leidekker 2012-04-02 13:15:33 +02:00 committed by Alexandre Julliard
parent 89c80c41ea
commit a6b3d77021
1 changed files with 1 additions and 1 deletions

View File

@ -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;