shdocvw: properly implement DllCanUnloadNow

jacek jack at itma.pwr.wroc.pl
Wed Jan 26 17:03:07 CST 2005


>  HRESULT WINAPI SHDOCVW_DllCanUnloadNow(void)
>  {
> -    FIXME("(void): stub\n");
> -
> -    return S_FALSE;
> +	return SHDOCVW_refCount != 0 ? S_FALSE : S_OK;
>  }

I think you should try to call Mozilla's DllCanUnloadNow before
returning S_OK. Your patch may cause unload of mozilla while
some instances of IWebBrowser still exist.




More information about the wine-devel mailing list