msi: Changed UI level AND mask to 0x7 from 0xf to account for possible undocumented flags.

Misha Koshelev mk144210 at bcm.tmc.edu
Tue Feb 6 12:50:22 CST 2007


Since the UI levels run from 1-5, a mask of 0x7 is probably better than
0xf in case there are undocumented UI level MSI flags that should also
not influence our comparison. Thanks to Felix Nawothnig for the
suggestion.

Changelog:

	* msi: Changed UI level AND mask to 0x7 from 0xf to account for
possible undocumented flags.
-------------- next part --------------
From 0f67a66cda7595eb14cc2f157fb618a85f30dafc Mon Sep 17 00:00:00 2001
From: Misha Koshelev <mk144210 at bcm.tmc.edu>
Date: Tue, 6 Feb 2007 12:47:11 -0600
Subject: msi: Changed UI level AND mask to 0x7 from 0xf to account for possible undocumented flags.
---
 dlls/msi/action.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/msi/action.c b/dlls/msi/action.c
index 6c2fdf4..5fc74b8 100644
--- a/dlls/msi/action.c
+++ b/dlls/msi/action.c
@@ -642,7 +642,7 @@ UINT MSI_InstallPackage( MSIPACKAGE *pac
     msi_apply_transforms( package );
     msi_apply_patches( package );
 
-    if ( (msi_get_property_int(package, szUILevel, 0) & 0xf) >= INSTALLUILEVEL_REDUCED )
+    if ( (msi_get_property_int(package, szUILevel, 0) & 0x7) >= INSTALLUILEVEL_REDUCED )
     {
         package->script->InWhatSequence |= SEQUENCE_UI;
         rc = ACTION_ProcessUISequence(package);
-- 
1.4.1



More information about the wine-patches mailing list