Allow MsiViewExecute to be called twice on the same query.

This commit is contained in:
Mike McCormack 2005-02-16 16:06:05 +00:00 committed by Alexandre Julliard
parent 64623067c3
commit e2df8814ea
2 changed files with 5 additions and 1 deletions

View file

@ -1220,7 +1220,10 @@ static UINT TABLE_execute( struct tagMSIVIEW *view, MSIRECORD *record )
TRACE("%p %p\n", tv, record);
if( tv->table )
return ERROR_FUNCTION_FAILED;
{
release_table( tv->db, tv->table );
tv->table = NULL;
}
r = get_table( tv->db, tv->name, &tv->table );
if( r != ERROR_SUCCESS )

View file

@ -247,6 +247,7 @@ static UINT WHERE_execute( struct tagMSIVIEW *view, MSIRECORD *record )
if( !wv->reorder )
return ERROR_FUNCTION_FAILED;
wv->row_count = 0;
for( i=0; i<count; i++ )
{
val = 0;