Module: wine Branch: master Commit: 1dcf2ae5a8ccb441219bb95e9c5b49150e62e890 URL: http://source.winehq.org/git/wine.git/?a=commit;h=1dcf2ae5a8ccb441219bb95e9c...
Author: Nikolay Sivov nsivov@codeweavers.com Date: Sat Aug 27 13:29:14 2016 +0300
msdaps: Added AddRefAccessor() proxy/stub.
Signed-off-by: Nikolay Sivov nsivov@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/msdaps/usrmarshal.c | 33 ++++++++++++++++++++++++++++----- 1 file changed, 28 insertions(+), 5 deletions(-)
diff --git a/dlls/msdaps/usrmarshal.c b/dlls/msdaps/usrmarshal.c index 5f3be4f..43e3aae 100644 --- a/dlls/msdaps/usrmarshal.c +++ b/dlls/msdaps/usrmarshal.c @@ -645,17 +645,40 @@ HRESULT __RPC_STUB ICreateRow_CreateRow_Stub(ICreateRow* This, IUnknown *pUnkOut return hr; }
-HRESULT CALLBACK IAccessor_AddRefAccessor_Proxy(IAccessor* This, HACCESSOR hAccessor, DBREFCOUNT *pcRefCount) +HRESULT CALLBACK IAccessor_AddRefAccessor_Proxy(IAccessor* This, HACCESSOR hAccessor, DBREFCOUNT *refcount) { - FIXME("(%p)->(%08lx, %p): stub\n", This, hAccessor, pcRefCount); - return E_NOTIMPL; + IErrorInfo *errorinfo; + DBREFCOUNT ref; + HRESULT hr; + + TRACE("(%p)->(%08lx, %p)\n", This, hAccessor, refcount); + + if (!refcount) + refcount = &ref; + + errorinfo = NULL; + hr = IAccessor_RemoteAddRefAccessor_Proxy(This, hAccessor, refcount, &errorinfo); + if (errorinfo) + { + SetErrorInfo(0, errorinfo); + IErrorInfo_Release(errorinfo); + } + + return hr; }
HRESULT __RPC_STUB IAccessor_AddRefAccessor_Stub(IAccessor* This, HACCESSOR hAccessor, DBREFCOUNT *pcRefCount, IErrorInfo **ppErrorInfoRem) { - FIXME("(%p)->(%08lx, %p, %p): stub\n", This, hAccessor, pcRefCount, ppErrorInfoRem); - return E_NOTIMPL; + HRESULT hr; + + TRACE("(%p)->(%08lx, %p, %p)\n", This, hAccessor, pcRefCount, ppErrorInfoRem); + + hr = IAccessor_AddRefAccessor(This, hAccessor, pcRefCount); + if (FAILED(hr)) + GetErrorInfo(0, ppErrorInfoRem); + + return hr; }
HRESULT CALLBACK IAccessor_CreateAccessor_Proxy(IAccessor* This, DBACCESSORFLAGS dwAccessorFlags, DBCOUNTITEM cBindings,