summaryrefslogtreecommitdiffstats
path: root/libmsi/table.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2012-12-02 15:53:54 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2012-12-06 20:30:32 +0100
commitdaa98bda6543e98e9d1561bdab26cba47c5e8cc5 (patch)
treed7127a1ac0ee919b534c3792e7ad66bfed614631 /libmsi/table.c
parent3a35af915583b5e4548ebcce1184231b4a3bfd50 (diff)
downloadmsitools-daa98bda6543e98e9d1561bdab26cba47c5e8cc5.tar.gz
msitools-daa98bda6543e98e9d1561bdab26cba47c5e8cc5.tar.xz
msitools-daa98bda6543e98e9d1561bdab26cba47c5e8cc5.zip
reorganize commit process to prepare for adding streams/storages
Diffstat (limited to 'libmsi/table.c')
-rw-r--r--libmsi/table.c20
1 files changed, 3 insertions, 17 deletions
diff --git a/libmsi/table.c b/libmsi/table.c
index 37e5493..39f0f5a 100644
--- a/libmsi/table.c
+++ b/libmsi/table.c
@@ -2061,21 +2061,13 @@ unsigned table_view_create( LibmsiDatabase *db, const WCHAR *name, LibmsiView **
return LIBMSI_RESULT_SUCCESS;
}
-unsigned _libmsi_database_commit_tables( LibmsiDatabase *db )
+unsigned _libmsi_database_commit_tables( LibmsiDatabase *db, unsigned bytes_per_strref )
{
- unsigned r, bytes_per_strref;
- HRESULT hr;
- LibmsiTable *table = NULL;
+ unsigned r = LIBMSI_RESULT_SUCCESS;
+ LibmsiTable *table;
TRACE("%p\n",db);
- r = msi_save_string_table( db->strings, db->outfile, &bytes_per_strref );
- if( r != LIBMSI_RESULT_SUCCESS )
- {
- WARN("failed to save string table r=%08x\n",r);
- return r;
- }
-
LIST_FOR_EACH_ENTRY( table, &db->tables, LibmsiTable, entry )
{
r = save_table( db, table, bytes_per_strref );
@@ -2087,12 +2079,6 @@ unsigned _libmsi_database_commit_tables( LibmsiDatabase *db )
}
}
- hr = IStorage_Commit( db->outfile, 0 );
- if (FAILED( hr ))
- {
- WARN("failed to commit changes 0x%08x\n", hr);
- r = LIBMSI_RESULT_FUNCTION_FAILED;
- }
return r;
}