Hans Leidekker : msado15: Implement Field_put_Type, Field_put_DefinedSize and Field_put_Attributes.

Alexandre Julliard julliard at winehq.org
Wed Dec 11 16:35:06 CST 2019


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

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Wed Dec 11 17:18:29 2019 +0100

msado15: Implement Field_put_Type, Field_put_DefinedSize and Field_put_Attributes.

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

---

 dlls/msado15/recordset.c | 27 +++++++++++++++++++++------
 1 file changed, 21 insertions(+), 6 deletions(-)

diff --git a/dlls/msado15/recordset.c b/dlls/msado15/recordset.c
index 99d22e4db0..78d13d1577 100644
--- a/dlls/msado15/recordset.c
+++ b/dlls/msado15/recordset.c
@@ -54,6 +54,9 @@ struct field
     Field             Field_iface;
     LONG              refs;
     WCHAR            *name;
+    DataTypeEnum      type;
+    LONG              defined_size;
+    LONG              attrs;
     LONG              index;
     struct recordset *recordset;
 };
@@ -240,20 +243,32 @@ static HRESULT WINAPI field_put_NumericScale( Field *iface, unsigned char scale
 
 static HRESULT WINAPI field_put_Type( Field *iface, DataTypeEnum type )
 {
-    FIXME( "%p, %u\n", iface, type );
-    return E_NOTIMPL;
+    struct field *field = impl_from_Field( iface );
+
+    TRACE( "%p, %u\n", field, type );
+
+    field->type = type;
+    return S_OK;
 }
 
 static HRESULT WINAPI field_put_DefinedSize( Field *iface, LONG size )
 {
-    FIXME( "%p, %d\n", iface, size );
-    return E_NOTIMPL;
+    struct field *field = impl_from_Field( iface );
+
+    TRACE( "%p, %d\n", field, size );
+
+    field->defined_size = size;
+    return S_OK;
 }
 
 static HRESULT WINAPI field_put_Attributes( Field *iface, LONG attrs )
 {
-    FIXME( "%p, %d\n", iface, attrs );
-    return E_NOTIMPL;
+    struct field *field = impl_from_Field( iface );
+
+    TRACE( "%p, %d\n", field, attrs );
+
+    field->attrs = attrs;
+    return S_OK;
 }
 
 static HRESULT WINAPI field_get_Status( Field *iface, LONG *status )




More information about the wine-cvs mailing list