Rob Shearman : ole32: REGCLS_MULTIPLEUSE implies CLSCTX_INPROC_SERVER in CoRegisterClassObject.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Mar 9 15:47:43 CST 2007


Module: wine
Branch: master
Commit: c826515e55079a7c5bba2d2cba5fc3c4b574124f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=c826515e55079a7c5bba2d2cba5fc3c4b574124f

Author: Rob Shearman <rob at 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.




More information about the wine-cvs mailing list