ole32: REGCLS_MULTIPLEUSE implies CLSCTX_INPROC_SERVER in CoRegisterClassObject.

This commit is contained in:
Rob Shearman 2007-03-09 17:39:58 +00:00 committed by Alexandre Julliard
parent 5fd727fa2a
commit c826515e55
1 changed files with 5 additions and 0 deletions

View File

@ -1542,6 +1542,11 @@ HRESULT WINAPI CoRegisterClassObject(
*lpdwRegister = 0;
/* REGCLS_MULTIPLEUSE implies registering as inproc server. This is what
* differentiates the flag from REGCLS_MULTI_SEPARATE. */
if (flags & REGCLS_MULTIPLEUSE)
dwClsContext |= CLSCTX_INPROC_SERVER;
/*
* First, check if the class is already registered.
* If it is, this should cause an error.