Robert Shearman : ole32: Print an error message if the apartment isn' t initialised in
Module: wine Branch: refs/heads/master Commit: af7c076337afb2449e2985bea46a73fc79b72b3f URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=af7c076337afb2449e2985be... Author: Robert Shearman <rob(a)codeweavers.com> Date: Tue Feb 7 16:25:25 2006 +0100 ole32: Print an error message if the apartment isn't initialised in CoCreateInstance. --- dlls/ole32/compobj.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/dlls/ole32/compobj.c b/dlls/ole32/compobj.c index dcef9c6..ab44b20 100644 --- a/dlls/ole32/compobj.c +++ b/dlls/ole32/compobj.c @@ -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
participants (1)
-
Alexandre Julliard