Commit d7de82fd authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

wbemprox: Support using record in IWbemClassObject Next.

Makes the code the same as class_object_Get. Signed-off-by: 's avatarAlistair Leslie-Hughes <leslie_alistair@hotmail.com> Signed-off-by: 's avatarHans Leidekker <hans@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 6daec612
......@@ -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;
......
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