diff --git a/dlls/ole32/compobj.c b/dlls/ole32/compobj.c index a20cb946d92..bac067a5695 100644 --- a/dlls/ole32/compobj.c +++ b/dlls/ole32/compobj.c @@ -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.