ole32: Print an error message if the apartment isn't initialised in
CoCreateInstance.
This commit is contained in:
parent
59830d69b4
commit
af7c076337
|
@ -1829,7 +1829,11 @@ HRESULT WINAPI CoCreateInstance(
|
||||||
TRACE("(rclsid=%s, pUnkOuter=%p, dwClsContext=%08lx, riid=%s, ppv=%p)\n", debugstr_guid(rclsid),
|
TRACE("(rclsid=%s, pUnkOuter=%p, dwClsContext=%08lx, riid=%s, ppv=%p)\n", debugstr_guid(rclsid),
|
||||||
pUnkOuter, dwClsContext, debugstr_guid(iid), ppv);
|
pUnkOuter, dwClsContext, debugstr_guid(iid), ppv);
|
||||||
|
|
||||||
if (!COM_CurrentApt()) return CO_E_NOTINITIALIZED;
|
if (!COM_CurrentApt())
|
||||||
|
{
|
||||||
|
ERR("apartment not initialised\n");
|
||||||
|
return CO_E_NOTINITIALIZED;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Sanity check
|
* Sanity check
|
||||||
|
|
Loading…
Reference in New Issue