[2/2] msi: Fix parsing of feature overrides.
Hans Leidekker
hans at codeweavers.com
Mon Jan 18 06:10:15 CST 2010
For http://bugs.winehq.org/show_bug.cgi?id=19636
---
dlls/msi/action.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/dlls/msi/action.c b/dlls/msi/action.c
index 10338ad..50f2007 100644
--- a/dlls/msi/action.c
+++ b/dlls/msi/action.c
@@ -1562,8 +1562,10 @@ static BOOL process_state_property(MSIPACKAGE* package, int level,
while (ptr)
{
- if ((ptr2 && strncmpW(ptr,feature->Feature, ptr2-ptr)==0)
- || (!ptr2 && strcmpW(ptr,feature->Feature)==0))
+ int len = ptr2 - ptr;
+
+ if ((ptr2 && strlenW(feature->Feature) == len && !strncmpW(ptr, feature->Feature, len))
+ || (!ptr2 && !strcmpW(ptr, feature->Feature)))
{
msi_feature_set_state(package, feature, state);
break;
--
1.6.3.3
More information about the wine-patches
mailing list