Mike McCormack : msi: Avoid reading the transform table data twice.
Module: wine Branch: master Commit: 07c85fe89584ddf13b24a16030be0fa59406d340 URL: http://source.winehq.org/git/wine.git/?a=commit;h=07c85fe89584ddf13b24a16030... Author: Mike McCormack <mike(a)codeweavers.com> Date: Tue Oct 10 19:19:37 2006 +0900 msi: Avoid reading the transform table data twice. --- dlls/msi/table.c | 10 +--------- 1 files changed, 1 insertions(+), 9 deletions(-) diff --git a/dlls/msi/table.c b/dlls/msi/table.c index dfbc73a..8fe3728 100644 --- a/dlls/msi/table.c +++ b/dlls/msi/table.c @@ -1833,6 +1833,7 @@ static UINT msi_table_load_transform( MS 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( MS 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 );
participants (1)
-
Alexandre Julliard