Commit 6253d49e authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

wbemprox: Fill tables at latest possible moment.

parent d030b819
...@@ -245,7 +245,9 @@ static HRESULT execute_view( struct view *view ) ...@@ -245,7 +245,9 @@ static HRESULT execute_view( struct view *view )
{ {
UINT i, j = 0, len; UINT i, j = 0, len;
if (!view->table || !view->table->num_rows) return S_OK; if (!view->table) return S_OK;
if (view->table->fill && !view->table->data) view->table->fill( view->table );
if (!view->table->num_rows) return S_OK;
len = min( view->table->num_rows, 16 ); len = min( view->table->num_rows, 16 );
if (!(view->result = heap_alloc( len * sizeof(UINT) ))) return E_OUTOFMEMORY; if (!(view->result = heap_alloc( len * sizeof(UINT) ))) return E_OUTOFMEMORY;
......
...@@ -336,7 +336,6 @@ struct table *grab_table( const WCHAR *name ) ...@@ -336,7 +336,6 @@ struct table *grab_table( const WCHAR *name )
{ {
if (!strcmpiW( table->name, name )) if (!strcmpiW( table->name, name ))
{ {
if (table->fill && !table->data) table->fill( table );
TRACE("returning %p\n", table); TRACE("returning %p\n", table);
return addref_table( table ); return addref_table( table );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment