Module: wine
Branch: master
Commit: c826515e55079a7c5bba2d2cba5fc3c4b574124f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c826515e55079a7c5bba2d2cb…
Author: Rob Shearman <rob(a)codeweavers.com>
Date: Fri Mar 9 17:39:58 2007 +0000
ole32: REGCLS_MULTIPLEUSE implies CLSCTX_INPROC_SERVER in CoRegisterClassObject.
---
dlls/ole32/compobj.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/dlls/ole32/compobj.c b/dlls/ole32/compobj.c
index a20cb94..bac067a 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.