From d587a1f102c1ac2a16839a079834a630376c3fb2 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Mon, 19 Nov 2012 23:27:30 -0500 Subject: [PATCH] oledb32: Implement IDataInitialize::CreateDBInstance. --- dlls/oledb32/datainit.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/dlls/oledb32/datainit.c b/dlls/oledb32/datainit.c index 862c725956f..b990dd80894 100644 --- a/dlls/oledb32/datainit.c +++ b/dlls/oledb32/datainit.c @@ -298,15 +298,16 @@ static HRESULT WINAPI datainit_GetInitializationString(IDataInitialize *iface, I return E_NOTIMPL; } -static HRESULT WINAPI datainit_CreateDBInstance(IDataInitialize *iface, REFCLSID clsidProvider, - IUnknown *pUnkOuter, DWORD dwClsCtx, LPWSTR pwszReserved, REFIID riid, - IUnknown **ppDataSource) +static HRESULT WINAPI datainit_CreateDBInstance(IDataInitialize *iface, REFCLSID provider, + IUnknown *outer, DWORD clsctx, LPWSTR reserved, REFIID riid, + IUnknown **datasource) { datainit *This = impl_from_IDataInitialize(iface); - FIXME("(%p)->()\n", This); + TRACE("(%p)->(%s %p 0x%08x %s %s %p)\n", This, debugstr_guid(provider), outer, clsctx, debugstr_w(reserved), + debugstr_guid(riid), datasource); - return E_NOTIMPL; + return CoCreateInstance(provider, outer, clsctx, riid, (void**)datasource); } static HRESULT WINAPI datainit_RemoteCreateDBInstanceEx(IDataInitialize *iface, REFCLSID clsidProvider,