<br><br><div class="gmail_quote">2012/3/28 Alexandre Julliard <span dir="ltr"><<a href="mailto:julliard@winehq.org">julliard@winehq.org</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">Christian Costa <<a href="mailto:titan.costa@gmail.com">titan.costa@gmail.com</a>> writes:<br>
<br>
> 2012/3/28 Alexandre Julliard <<a href="mailto:julliard@winehq.org">julliard@winehq.org</a>><br>
><br>
>> Christian Costa <<a href="mailto:titan.costa@gmail.com">titan.costa@gmail.com</a>> writes:<br>
>><br>
>> > @@ -360,14 +361,17 @@ HRESULT WINAPI STRMBASE_DllGetClassObject(REFCLSID<br>
>> rclsid, REFIID riid, LPVOID *<br>
>> > � � � � � � �break;<br>
>> > � � �}<br>
>> ><br>
>> > + � �if (!GetModuleFileNameA(g_hInst, dllname, sizeof(dllname)))<br>
>> > + � � � �strcpy(dllname, "???");<br>
>><br>
>> You don't want to do that in the success case.<br>
>><br>
>><br>
> GetModuleFileNameA returns the length of the string copied to the buffer.<br>
> The length is 0 in case of error.<br>
<br>
</div></div>What I mean is that you only need the module name in case the class is<br>
not found (and really, only in the null constructor case).<br>
<span class="HOEnZb"><font color="#888888"><br>
</font></span></blockquote></div><br>It's convenient to see from a log where the class is supposed to be implemented but since this can be retreive in the registry, it can be remove.<br>