msi: Use proper return types in msi_table_apply_transform.
Signed-off-by: Hans Leidekker <hans@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
7846f0947a
commit
b0b2a1a4de
|
@ -2738,7 +2738,7 @@ UINT msi_table_apply_transform( MSIDATABASE *db, IStorage *stg )
|
|||
IEnumSTATSTG *stgenum = NULL;
|
||||
TRANSFORMDATA *transform;
|
||||
TRANSFORMDATA *tables = NULL, *columns = NULL;
|
||||
HRESULT r;
|
||||
HRESULT hr;
|
||||
STATSTG stat;
|
||||
string_table *strings;
|
||||
UINT ret = ERROR_FUNCTION_FAILED;
|
||||
|
@ -2751,8 +2751,8 @@ UINT msi_table_apply_transform( MSIDATABASE *db, IStorage *stg )
|
|||
if( !strings )
|
||||
goto end;
|
||||
|
||||
r = IStorage_EnumElements( stg, 0, NULL, 0, &stgenum );
|
||||
if( FAILED( r ) )
|
||||
hr = IStorage_EnumElements( stg, 0, NULL, 0, &stgenum );
|
||||
if (FAILED( hr ))
|
||||
goto end;
|
||||
|
||||
list_init(&transforms);
|
||||
|
@ -2763,8 +2763,8 @@ UINT msi_table_apply_transform( MSIDATABASE *db, IStorage *stg )
|
|||
WCHAR name[0x40];
|
||||
ULONG count = 0;
|
||||
|
||||
r = IEnumSTATSTG_Next( stgenum, 1, &stat, &count );
|
||||
if ( FAILED( r ) || !count )
|
||||
hr = IEnumSTATSTG_Next( stgenum, 1, &stat, &count );
|
||||
if (FAILED( hr ) || !count)
|
||||
break;
|
||||
|
||||
decode_streamname( stat.pwcsName, name );
|
||||
|
@ -2794,12 +2794,10 @@ UINT msi_table_apply_transform( MSIDATABASE *db, IStorage *stg )
|
|||
TRACE("transform contains stream %s\n", debugstr_w(name));
|
||||
|
||||
/* load the table */
|
||||
r = TABLE_CreateView( db, transform->name, (MSIVIEW**) &tv );
|
||||
if( r != ERROR_SUCCESS )
|
||||
if (TABLE_CreateView( db, transform->name, (MSIVIEW**) &tv ) != ERROR_SUCCESS)
|
||||
continue;
|
||||
|
||||
r = tv->view.ops->execute( &tv->view, NULL );
|
||||
if( r != ERROR_SUCCESS )
|
||||
if (tv->view.ops->execute( &tv->view, NULL ) != ERROR_SUCCESS)
|
||||
{
|
||||
tv->view.ops->delete( &tv->view );
|
||||
continue;
|
||||
|
|
Loading…
Reference in New Issue