Allow MsiViewExecute to be called twice on the same query.
This commit is contained in:
parent
64623067c3
commit
e2df8814ea
|
@ -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 )
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue