ole32: Print an error message if the apartment isn't initialised in

CoCreateInstance.
This commit is contained in:
Robert Shearman 2006-02-07 16:25:25 +01:00 committed by Alexandre Julliard
parent 59830d69b4
commit af7c076337
1 changed files with 5 additions and 1 deletions

View File

@ -1829,7 +1829,11 @@ HRESULT WINAPI CoCreateInstance(
TRACE("(rclsid=%s, pUnkOuter=%p, dwClsContext=%08lx, riid=%s, ppv=%p)\n", debugstr_guid(rclsid),
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