From 37fcb0d630545f4b8daf96d6da65a04cfd7dc85e Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Sun, 29 Jan 2017 21:30:23 +0300 Subject: [PATCH] oledb32: Fixed IDataInitialize definition. Signed-off-by: Nikolay Sivov Signed-off-by: Alistair Leslie-Hughes Signed-off-by: Alexandre Julliard --- dlls/oledb32/datainit.c | 10 +++++----- include/msdasc.idl | 10 ++++++++-- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/dlls/oledb32/datainit.c b/dlls/oledb32/datainit.c index 42d5daebad6..8d6b8eff5af 100644 --- a/dlls/oledb32/datainit.c +++ b/dlls/oledb32/datainit.c @@ -918,13 +918,13 @@ static HRESULT WINAPI datainit_CreateDBInstance(IDataInitialize *iface, REFCLSID return CoCreateInstance(provider, outer, clsctx, riid, (void**)datasource); } -static HRESULT WINAPI datainit_RemoteCreateDBInstanceEx(IDataInitialize *iface, REFCLSID clsidProvider, - IUnknown *pUnkOuter, DWORD dwClsCtx, LPWSTR pwszReserved, COSERVERINFO *pServerInfo, - DWORD cmq, GUID **rgpIID, IUnknown **rgpItf, HRESULT *rghr) +static HRESULT WINAPI datainit_CreateDBInstanceEx(IDataInitialize *iface, REFCLSID provider, IUnknown *outer, + DWORD clsctx, LPWSTR reserved, COSERVERINFO *server_info, DWORD cmq, MULTI_QI *results) { datainit *This = impl_from_IDataInitialize(iface); - FIXME("(%p)->()\n", This); + FIXME("(%p)->(%s %p %#x %s %p %u %p)\n", This, debugstr_guid(provider), outer, clsctx, + debugstr_w(reserved), server_info, cmq, results); return E_NOTIMPL; } @@ -958,7 +958,7 @@ static const struct IDataInitializeVtbl datainit_vtbl = datainit_GetDataSource, datainit_GetInitializationString, datainit_CreateDBInstance, - datainit_RemoteCreateDBInstanceEx, + datainit_CreateDBInstanceEx, datainit_LoadStringFromStorage, datainit_WriteStringToStorage }; diff --git a/include/msdasc.idl b/include/msdasc.idl index e3efb1da312..6a904ba1d2f 100644 --- a/include/msdasc.idl +++ b/include/msdasc.idl @@ -102,10 +102,16 @@ library MSDASC [in] DWORD dwClsCtx, [in] LPWSTR pwszReserved, [in] REFIID riid, [out] IUnknown** ppDataSource); + [local] + HRESULT CreateDBInstanceEx([in] REFCLSID clsidProvider, [in] IUnknown* pUnkOuter, + [in] DWORD dwClsCtx, [in] LPWSTR pwszReserved, [in] COSERVERINFO* pServerInfo, + [in] DWORD cmq, [in, out, size_is(cmq)] MULTI_QI *results); + + [call_as(CreateDBInstanceEx)] HRESULT RemoteCreateDBInstanceEx([in] REFCLSID clsidProvider, [in] IUnknown* pUnkOuter, [in] DWORD dwClsCtx, [in] LPWSTR pwszReserved, [in] COSERVERINFO* pServerInfo, - [in] DWORD cmq, [in] GUID** rgpIID, [out] IUnknown** rgpItf, - [out] HRESULT* rghr); + [in] DWORD cmq, [in, size_is(cmq)] const IID **iids, [out, size_is(cmq)] IUnknown **ifs, + [out, size_is(cmq)] HRESULT *hr); HRESULT LoadStringFromStorage([in] LPWSTR pwszFileName, [out] LPWSTR* ppwszInitializationString);