msi: Avoid reading the transform table data twice.

This commit is contained in:
Mike McCormack 2006-10-10 19:19:37 +09:00 committed by Alexandre Julliard
parent e9c5e93fda
commit 07c85fe895

View file

@ -1833,6 +1833,7 @@ static UINT msi_table_load_transform( MSIDATABASE *db, IStorage *stg,
TRACE("%p %p %p %s\n", db, stg, st, debugstr_w(name) );
/* read the transform data */
read_stream_data( stg, name, &rawdata, &rawsize );
if ( !rawdata )
{
@ -1849,15 +1850,6 @@ static UINT msi_table_load_transform( MSIDATABASE *db, IStorage *stg,
if( r != ERROR_SUCCESS )
goto err;
/* read the transform data */
r = ERROR_FUNCTION_FAILED;
read_stream_data( stg, name, &rawdata, &rawsize );
if( !rawdata || (rawsize < 2) )
{
ERR("odd sized transform for table %s\n", debugstr_w(name));
goto err;
}
TRACE("name = %s columns = %u row_size = %u raw size = %u\n",
debugstr_w(name), tv->num_cols, tv->row_size, rawsize );