Commit 6187e8db authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

ole32: Return IUnknown from GITCF_CreateInstance if requested.

parent ef64f276
...@@ -122,9 +122,14 @@ StdGlobalInterfaceTable_QueryInterface(IGlobalInterfaceTable* iface, ...@@ -122,9 +122,14 @@ StdGlobalInterfaceTable_QueryInterface(IGlobalInterfaceTable* iface,
/* Do we implement that interface? */ /* Do we implement that interface? */
if (IsEqualIID(&IID_IUnknown, riid) || if (IsEqualIID(&IID_IUnknown, riid) ||
IsEqualIID(&IID_IGlobalInterfaceTable, riid)) IsEqualIID(&IID_IGlobalInterfaceTable, riid))
{
*ppvObject = iface; *ppvObject = iface;
}
else else
{
FIXME("(%s), not supported.\n", debugstr_guid(riid));
return E_NOINTERFACE; return E_NOINTERFACE;
}
/* Now inc the refcount */ /* Now inc the refcount */
IGlobalInterfaceTable_AddRef(iface); IGlobalInterfaceTable_AddRef(iface);
...@@ -314,13 +319,10 @@ static HRESULT WINAPI ...@@ -314,13 +319,10 @@ static HRESULT WINAPI
GITCF_CreateInstance(LPCLASSFACTORY iface, LPUNKNOWN pUnk, GITCF_CreateInstance(LPCLASSFACTORY iface, LPUNKNOWN pUnk,
REFIID riid, LPVOID *ppv) REFIID riid, LPVOID *ppv)
{ {
if (IsEqualIID(riid,&IID_IGlobalInterfaceTable)) {
IGlobalInterfaceTable *git = get_std_git(); IGlobalInterfaceTable *git = get_std_git();
return IGlobalInterfaceTable_QueryInterface(git, riid, ppv); HRESULT hr = IGlobalInterfaceTable_QueryInterface(git, riid, ppv);
} IGlobalInterfaceTable_Release(git);
return hr;
FIXME("(%s), not supported.\n",debugstr_guid(riid));
return E_NOINTERFACE;
} }
static HRESULT WINAPI GITCF_LockServer(LPCLASSFACTORY iface, BOOL fLock) static HRESULT WINAPI GITCF_LockServer(LPCLASSFACTORY iface, BOOL fLock)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment