msado15: Implement Field_get_Name and Field_get_Type.

Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hans Leidekker 2019-12-12 17:12:21 +01:00 committed by Alexandre Julliard
parent 375c91e31d
commit c4be51d771
1 changed files with 14 additions and 4 deletions

View File

@ -159,14 +159,24 @@ static HRESULT WINAPI field_get_DefinedSize( Field *iface, LONG *size )
static HRESULT WINAPI field_get_Name( Field *iface, BSTR *str )
{
FIXME( "%p, %p\n", iface, str );
return E_NOTIMPL;
struct field *field = impl_from_Field( iface );
BSTR name;
TRACE( "%p, %p\n", field, str );
if (!(name = SysAllocString( field->name ))) return E_OUTOFMEMORY;
*str = name;
return S_OK;
}
static HRESULT WINAPI field_get_Type( Field *iface, DataTypeEnum *type )
{
FIXME( "%p, %p\n", iface, type );
return E_NOTIMPL;
struct field *field = impl_from_Field( iface );
TRACE( "%p, %p\n", field, type );
*type = field->type;
return S_OK;
}
static HRESULT WINAPI field_get_Value( Field *iface, VARIANT *val )