<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="im">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 rclsid, REFIID riid, LPVOID *<br>
>              break;<br>
>      }<br>
><br>
> +    if (!GetModuleFileNameA(g_hInst, dllname, sizeof(dllname)))<br>
> +        strcpy(dllname, "???");<br>
<br>
</div>You don't want to do that in the success case.<br>
<span class="HOEnZb"><font color="#888888"></font></span><br></blockquote></div><br>GetModuleFileNameA returns the length of the string copied to the buffer. The length is 0 in case of error.<br>