wbemdisp: Implement ISWbemProperty::get_Value.

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Huw Davies 2017-04-03 09:57:33 +01:00 committed by Alexandre Julliard
parent 6721725689
commit a392e14243
2 changed files with 11 additions and 3 deletions

View file

@ -209,10 +209,13 @@ static HRESULT WINAPI property_Invoke( ISWbemProperty *iface, DISPID member, REF
return hr;
}
static HRESULT WINAPI property_get_Value( ISWbemProperty *iface, VARIANT *varValue )
static HRESULT WINAPI property_get_Value( ISWbemProperty *iface, VARIANT *value )
{
FIXME( "\n" );
return E_NOTIMPL;
struct property *property = impl_from_ISWbemProperty( iface );
TRACE( "%p %p\n", property, value );
return IWbemClassObject_Get( property->object, property->name, 0, value, NULL, NULL );
}
static HRESULT WINAPI property_put_Value( ISWbemProperty *iface, VARIANT *varValue )

View file

@ -313,6 +313,11 @@ static void test_locator(void)
ok( hr == S_OK, "got %x\n", hr );
SysFreeString( procid_bstr );
hr = ISWbemProperty_get_Value( prop, &var );
ok( hr == S_OK, "got %x\n", hr );
ok( V_VT(&var) == VT_BSTR, "got %x\n", V_VT(&var) );
VariantClear( &var );
ISWbemProperty_Release( prop );
ISWbemPropertySet_Release( prop_set );
ISWbemObject_Release( object );