msi: Skip reference counting for assembly components.
authorHans Leidekker <hans@codeweavers.com>
Wed, 16 Mar 2011 08:22:48 +0000 (09:22 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 16 Mar 2011 13:14:23 +0000 (14:14 +0100)
dlls/msi/action.c

index 7567f5de05de99aca7981825c2f2213c8a375ec7..f806f18cb340d104581b7d2d4d7cbd8e6e389769 100644 (file)
@@ -3151,9 +3151,6 @@ static UINT ACTION_WriteSharedDLLsCount(LPCWSTR path, UINT count)
     return count;
 }
 
-/*
- * Return TRUE if the count should be written out and FALSE if not
- */
 static void ACTION_RefCountComponent( MSIPACKAGE* package, MSICOMPONENT *comp )
 {
     MSIFEATURE *feature;
@@ -3162,6 +3159,7 @@ static void ACTION_RefCountComponent( MSIPACKAGE* package, MSICOMPONENT *comp )
 
     /* only refcount DLLs */
     if (comp->KeyPath == NULL || 
+        comp->assembly ||
         comp->Attributes & msidbComponentAttributesRegistryKeyPath || 
         comp->Attributes & msidbComponentAttributesODBCDataSource)
         write = FALSE;