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.