CoGetClassObject should complain about not being able to do

out-of-process servers *only* if the application doesn't include the
in-process options.
This commit is contained in:
Rein Klazes 1999-11-10 19:57:45 +00:00 committed by Alexandre Julliard
parent 077ec0cffd
commit d93c7bca23
1 changed files with 2 additions and 1 deletions

View File

@ -1320,7 +1320,8 @@ HRESULT WINAPI CoGetClassObject(REFCLSID rclsid, DWORD dwClsContext,
} }
/* out of process and remote servers not supported yet */ /* out of process and remote servers not supported yet */
if ((CLSCTX_LOCAL_SERVER|CLSCTX_REMOTE_SERVER) & dwClsContext) { if (((CLSCTX_LOCAL_SERVER|CLSCTX_REMOTE_SERVER) & dwClsContext)
&& !((CLSCTX_INPROC_SERVER|CLSCTX_INPROC_HANDLER) & dwClsContext)){
FIXME("CLSCTX_LOCAL_SERVER and CLSCTX_REMOTE_SERVER not supported!\n"); FIXME("CLSCTX_LOCAL_SERVER and CLSCTX_REMOTE_SERVER not supported!\n");
return E_ACCESSDENIED; return E_ACCESSDENIED;
} }