msi: Remove an unused parameter from msi_create_table.

This commit is contained in:
Hans Leidekker 2011-09-23 11:12:02 +02:00 committed by Alexandre Julliard
parent df92979b39
commit 80438ef2ce
3 changed files with 3 additions and 7 deletions

View file

@ -61,7 +61,6 @@ static UINT CREATE_fetch_int( struct tagMSIVIEW *view, UINT row, UINT col, UINT
static UINT CREATE_execute( struct tagMSIVIEW *view, MSIRECORD *record )
{
MSICREATEVIEW *cv = (MSICREATEVIEW*)view;
MSITABLE *table;
BOOL persist = (cv->bIsTemp) ? MSICONDITION_FALSE : MSICONDITION_TRUE;
TRACE("%p Table %s (%s)\n", cv, debugstr_w(cv->name),
@ -70,7 +69,7 @@ static UINT CREATE_execute( struct tagMSIVIEW *view, MSIRECORD *record )
if (cv->bIsTemp && !cv->hold)
return ERROR_SUCCESS;
return msi_create_table( cv->db, cv->name, cv->col_info, persist, &table);
return msi_create_table( cv->db, cv->name, cv->col_info, persist );
}
static UINT CREATE_close( struct tagMSIVIEW *view )

View file

@ -138,6 +138,6 @@ int sqliteGetToken(const WCHAR *z, int *tokenType) DECLSPEC_HIDDEN;
MSIRECORD *msi_query_merge_record( UINT fields, const column_info *vl, MSIRECORD *rec ) DECLSPEC_HIDDEN;
UINT msi_create_table( MSIDATABASE *db, LPCWSTR name, column_info *col_info,
MSICONDITION persistent, MSITABLE **table_ret) DECLSPEC_HIDDEN;
MSICONDITION persistent ) DECLSPEC_HIDDEN;
#endif /* __WINE_MSI_QUERY_H */

View file

@ -725,7 +725,7 @@ static UINT get_tablecolumns( MSIDATABASE *db, LPCWSTR szTableName, MSICOLUMNINF
}
UINT msi_create_table( MSIDATABASE *db, LPCWSTR name, column_info *col_info,
MSICONDITION persistent, MSITABLE **table_ret)
MSICONDITION persistent )
{
enum StringPersistence string_persistence = (persistent) ? StringPersistent : StringNonPersistent;
UINT r, nField;
@ -870,10 +870,7 @@ err:
tv->ops->delete( tv );
if (r == ERROR_SUCCESS)
{
list_add_head( &db->tables, &table->entry );
*table_ret = table;
}
else
free_table( table );