mirror of
https://github.com/reactos/wine.git
synced 2025-02-19 04:18:09 +00:00
msi: Reset the feature states if iInstallLevel is 0 or below.
This commit is contained in:
parent
742120ba94
commit
30c1b88828
@ -1169,15 +1169,16 @@ UINT MSI_SetInstallLevel( MSIPACKAGE *package, int iInstallLevel )
|
||||
|
||||
TRACE("%p %i\n", package, iInstallLevel);
|
||||
|
||||
if (iInstallLevel<1 || iInstallLevel>32767)
|
||||
if (iInstallLevel > 32767)
|
||||
return ERROR_INVALID_PARAMETER;
|
||||
|
||||
if (iInstallLevel < 1)
|
||||
return MSI_SetFeatureStates( package );
|
||||
|
||||
sprintfW( level, fmt, iInstallLevel );
|
||||
r = MSI_SetPropertyW( package, szInstallLevel, level );
|
||||
if ( r == ERROR_SUCCESS )
|
||||
{
|
||||
r = MSI_SetFeatureStates( package );
|
||||
}
|
||||
|
||||
return r;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user