wbemprox: Support using record in IWbemClassObject Next.
Makes the code the same as class_object_Get. Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com> Signed-off-by: Hans Leidekker <hans@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
6daec612cf
commit
d7de82fda0
|
@ -546,7 +546,17 @@ static HRESULT WINAPI class_object_Next(
|
|||
if (is_method( table, i )) continue;
|
||||
if (!is_result_prop( view, table->columns[i].name )) continue;
|
||||
if (!(prop = SysAllocString( table->columns[i].name ))) return E_OUTOFMEMORY;
|
||||
if ((hr = get_propval( view, obj->index, prop, pVal, pType, plFlavor )) != S_OK)
|
||||
if (obj->record)
|
||||
{
|
||||
UINT index;
|
||||
|
||||
if ((hr = get_column_index( table, table->columns[i].name, &index )) == S_OK)
|
||||
hr = record_get_value( obj->record, index, pVal, pType );
|
||||
}
|
||||
else
|
||||
hr = get_propval( view, obj->index, prop, pVal, pType, plFlavor );
|
||||
|
||||
if (FAILED(hr))
|
||||
{
|
||||
SysFreeString( prop );
|
||||
return hr;
|
||||
|
|
Loading…
Reference in New Issue