Huw Davies : msdaps: Add support for remoting IAccessor_ReleaseAccessor.

Alexandre Julliard julliard at winehq.org
Fri Feb 5 08:42:33 CST 2010


Module: wine
Branch: master
Commit: 5a407112da2eee4161bdff1cf8d67017c2e15606
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=5a407112da2eee4161bdff1cf8d67017c2e15606

Author: Huw Davies <huw at codeweavers.com>
Date:   Thu Feb  4 14:10:08 2010 +0000

msdaps: Add support for remoting IAccessor_ReleaseAccessor.

---

 dlls/msdaps/row_server.c |   24 ++++++++++++++++++++----
 1 files changed, 20 insertions(+), 4 deletions(-)

diff --git a/dlls/msdaps/row_server.c b/dlls/msdaps/row_server.c
index 43da90b..d4123bd 100644
--- a/dlls/msdaps/row_server.c
+++ b/dlls/msdaps/row_server.c
@@ -412,8 +412,18 @@ static HRESULT WINAPI server_ReleaseAccessor(IWineRowServer* iface, HACCESSOR hA
                                              DBREFCOUNT *pcRefCount)
 {
     server *This = impl_from_IWineRowServer(iface);
-    FIXME("(%p)->(%08lx, %p): stub\n", This, hAccessor, pcRefCount);
-    return E_NOTIMPL;
+    HRESULT hr;
+    IAccessor *accessor;
+
+    TRACE("(%p)->(%08lx, %p)\n", This, hAccessor, pcRefCount);
+
+    hr = IUnknown_QueryInterface(This->inner_unk, &IID_IAccessor, (void**)&accessor);
+    if(FAILED(hr)) return hr;
+
+    hr = IAccessor_ReleaseAccessor(accessor, hAccessor, pcRefCount);
+    IAccessor_Release(accessor);
+
+    return hr;
 }
 
 static const IWineRowServerVtbl server_vtbl =
@@ -1074,8 +1084,14 @@ static HRESULT WINAPI accessor_GetBindings(IAccessor *iface, HACCESSOR hAccessor
 static HRESULT WINAPI accessor_ReleaseAccessor(IAccessor *iface, HACCESSOR hAccessor, DBREFCOUNT *pcRefCount)
 {
     rowset_proxy *This = impl_from_IAccessor(iface);
-    FIXME("(%p)\n", This);
-    return E_NOTIMPL;
+    HRESULT hr;
+    DBREFCOUNT ref;
+
+    TRACE("(%p)->(%08lx, %p)\n", This, hAccessor, pcRefCount);
+
+    hr = IWineRowServer_ReleaseAccessor(This->server, hAccessor, &ref);
+    if(pcRefCount) *pcRefCount = ref;
+    return hr;
 }
 
 static const IAccessorVtbl accessor_vtbl =




More information about the wine-cvs mailing list