msi: Get rid of some redundant initializations.
This commit is contained in:
parent
b7a81df452
commit
534f20bc49
|
@ -191,8 +191,6 @@ UINT MSI_OpenDatabaseW(LPCWSTR szDBPath, LPCWSTR szPersist, MSIDATABASE **pdb)
|
|||
db->mode = szMode;
|
||||
if (created)
|
||||
db->deletefile = strdupW( szDBPath );
|
||||
else
|
||||
db->deletefile = NULL;
|
||||
list_init( &db->tables );
|
||||
list_init( &db->transforms );
|
||||
|
||||
|
|
|
@ -126,9 +126,7 @@ UINT MSI_DatabaseOpenViewW(MSIDATABASE *db,
|
|||
return ERROR_FUNCTION_FAILED;
|
||||
|
||||
msiobj_addref( &db->hdr );
|
||||
query->row = 0;
|
||||
query->db = db;
|
||||
query->view = NULL;
|
||||
list_init( &query->mem );
|
||||
|
||||
r = MSI_ParseSQL( db, szQuery, &query->view, &query->mem );
|
||||
|
|
|
@ -744,15 +744,6 @@ static MSIPACKAGE *msi_alloc_package( void )
|
|||
list_init( &package->RunningActions );
|
||||
list_init( &package->sourcelist_info );
|
||||
list_init( &package->sourcelist_media );
|
||||
|
||||
package->patch = NULL;
|
||||
package->ActionFormat = NULL;
|
||||
package->LastAction = NULL;
|
||||
package->dialog = NULL;
|
||||
package->next_dialog = NULL;
|
||||
package->scheduled_action_running = FALSE;
|
||||
package->commit_action_running = FALSE;
|
||||
package->rollback_action_running = FALSE;
|
||||
}
|
||||
|
||||
return package;
|
||||
|
|
|
@ -54,7 +54,6 @@ static MSIPREVIEW *MSI_EnableUIPreview( MSIDATABASE *db )
|
|||
if( preview )
|
||||
{
|
||||
preview->package = package;
|
||||
preview->dialog = 0;
|
||||
msiobj_addref( &package->hdr );
|
||||
}
|
||||
msiobj_release( &package->hdr );
|
||||
|
|
|
@ -443,7 +443,6 @@ MSISUMMARYINFO *MSI_GetSummaryInformationW( IStorage *stg, UINT uiUpdateCount )
|
|||
if( !si )
|
||||
return si;
|
||||
|
||||
memset( si->property, 0, sizeof si->property );
|
||||
si->update_count = uiUpdateCount;
|
||||
IStorage_AddRef( stg );
|
||||
si->storage = stg;
|
||||
|
|
Loading…
Reference in New Issue