James Hawkins : msi: Reset the feature states if iInstallLevel is 0 or below.
Alexandre Julliard
julliard at winehq.org
Mon Apr 7 06:50:17 CDT 2008
Module: wine
Branch: master
Commit: 30c1b88828464e1220c7eb4b884aedce6913607f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=30c1b88828464e1220c7eb4b884aedce6913607f
Author: James Hawkins <jhawkins at codeweavers.com>
Date: Fri Apr 4 22:48:20 2008 -0500
msi: Reset the feature states if iInstallLevel is 0 or below.
---
dlls/msi/install.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/dlls/msi/install.c b/dlls/msi/install.c
index 999840d..6415459 100644
--- a/dlls/msi/install.c
+++ b/dlls/msi/install.c
@@ -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;
}
More information about the wine-cvs
mailing list