Hans Leidekker : msado15: Implement Field_get_Name and Field_get_Type.

Alexandre Julliard julliard at winehq.org
Thu Dec 12 16:29:43 CST 2019


Module: wine
Branch: master
Commit: c4be51d77146b0b3dac2b10f98d38f7667034e86
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=c4be51d77146b0b3dac2b10f98d38f7667034e86

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Thu Dec 12 17:12:21 2019 +0100

msado15: Implement Field_get_Name and Field_get_Type.

Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/msado15/recordset.c | 18 ++++++++++++++----
 1 file changed, 14 insertions(+), 4 deletions(-)

diff --git a/dlls/msado15/recordset.c b/dlls/msado15/recordset.c
index 78d13d1577..a20d5920da 100644
--- a/dlls/msado15/recordset.c
+++ b/dlls/msado15/recordset.c
@@ -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 )




More information about the wine-cvs mailing list