wbemprox: Refill tables with dynamic content before each query.

This commit is contained in:
Hans Leidekker 2013-05-22 10:08:17 +02:00 committed by Alexandre Julliard
parent 6253d49e15
commit 8f69a44b1c
3 changed files with 7 additions and 2 deletions

View File

@ -246,7 +246,11 @@ static HRESULT execute_view( struct view *view )
UINT i, j = 0, len; UINT i, j = 0, len;
if (!view->table) return S_OK; if (!view->table) return S_OK;
if (view->table->fill && !view->table->data) view->table->fill( view->table ); if (view->table->fill)
{
clear_table( view->table );
view->table->fill( view->table );
}
if (!view->table->num_rows) return S_OK; if (!view->table->num_rows) return S_OK;
len = min( view->table->num_rows, 16 ); len = min( view->table->num_rows, 16 );

View File

@ -263,7 +263,7 @@ HRESULT get_method( const struct table *table, const WCHAR *name, class_method *
} }
static void clear_table( struct table *table ) void clear_table( struct table *table )
{ {
UINT i, j, type; UINT i, j, type;
LONGLONG val; LONGLONG val;

View File

@ -171,6 +171,7 @@ struct table *create_table( const WCHAR *, UINT, const struct column *, UINT,
BYTE *, void (*)(struct table *)) DECLSPEC_HIDDEN; BYTE *, void (*)(struct table *)) DECLSPEC_HIDDEN;
BOOL add_table( struct table * ) DECLSPEC_HIDDEN; BOOL add_table( struct table * ) DECLSPEC_HIDDEN;
void free_columns( struct column *, UINT ) DECLSPEC_HIDDEN; void free_columns( struct column *, UINT ) DECLSPEC_HIDDEN;
void clear_table( struct table * ) DECLSPEC_HIDDEN;
void free_table( struct table * ) DECLSPEC_HIDDEN; void free_table( struct table * ) DECLSPEC_HIDDEN;
UINT get_type_size( CIMTYPE ) DECLSPEC_HIDDEN; UINT get_type_size( CIMTYPE ) DECLSPEC_HIDDEN;
HRESULT get_column_index( const struct table *, const WCHAR *, UINT * ) DECLSPEC_HIDDEN; HRESULT get_column_index( const struct table *, const WCHAR *, UINT * ) DECLSPEC_HIDDEN;