<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Forwarding to wine-devel as well<br>
<div class="moz-forward-container"><br>
P.S. Roman, please reply to wine-devel list next time.<br>
<br>
<br>
-------- Original Message --------
<table class="moz-email-headers-table" border="0" cellpadding="0"
cellspacing="0">
<tbody>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Subject:
</th>
<td>Re: ole32: Fix dwClsContext parameter of a
CoCreateInstance call in DefaultHandler_Run.</td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Date: </th>
<td>Tue, 09 Oct 2012 15:27:10 +0400</td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">From: </th>
<td>Roman Dadkov <a class="moz-txt-link-rfc2396E" href="mailto:romand@etersoft.ru"><romand@etersoft.ru></a></td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Organization:
</th>
<td>Etersoft</td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">To: </th>
<td>Nikolay Sivov <a class="moz-txt-link-rfc2396E" href="mailto:bunglehead@gmail.com"><bunglehead@gmail.com></a></td>
</tr>
</tbody>
</table>
<br>
<br>
<p><span id="result_box"><span class="hps">Yes,</span> <span
class="hps">it's my fail</span><span>, I forgot,</span> <span
class="hps">that can be use</span> <span class="hps">one
enumeration </span></span>CLSCTX_ALL in this case. <br>
Unfortunately, the test for this case can't be added to Wine,
because it leads a crash. But <span id="result_box"><span
class="hps">I have attached</span> <span class="hps">a
small test</span> <span class="hps">program that</span> <span
class="hps">shows a problem</span><span>.</span> <span
class="hps">It uses</span> <span class="hps">CLSID</span> <span
class="hps">which</span> <span class="hps">entered</span> <span
class="hps">into the registry</span> <span class="hps">after
installing</span> <span class="hps">Office</span> <span
class="hps">using</span> <span class="hps">Wine</span></span>.</p>
<p>Nikolay Sivov 08.10.2012 10:07:</p>
<blockquote type="cite" style="padding-left:5px;
border-left:#1010ff 2px solid; margin-left:5px; width:100%"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<div class="moz-cite-prefix">On 10/6/2012 19:29, Roman Dadkov
wrote:</div>
<blockquote type="cite" style="padding-left:5px;
border-left:#1010ff 2px solid; margin-left:5px; width:100%">This
patch change dwClsContext parameter of a CoCreateInstance call
in function DefaultHandler_Run. <br>
Because even if there is some clsid in the registry, the
function will not be able to run the newly created object.<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre> </pre>
</blockquote>
<blockquote type="cite" style="padding-left:5px;
border-left:#1010ff 2px solid; margin-left:5px; width:100%">
<pre>- hr = CoCreateInstance(&This->clsid, NULL, CLSCTX_LOCAL_SERVER,
+ hr = CoCreateInstance(&This->clsid, NULL,
+ CLSCTX_INPROC_SERVER|CLSCTX_INPROC_HANDLER|
+ CLSCTX_LOCAL_SERVER|CLSCTX_REMOTE_SERVER,
&IID_IOleObject, (void **)&This->pOleDelegate);</pre>
</blockquote>
This could be replaced with CLSCTX_ALL.<br>
<br>
Is it possible to add a test for that?</blockquote>
<p> </p>
<div> </div>
<br>
<br>
</div>
<br>
</body>
</html>