Dan Kegel wrote:
This prevents http://bugs.winehq.org/show_bug.cgi?id=16164
( http://www.microsoft.com/msj/0197/activex/activex0197.aspx looks like a nice, scary article on the subject. )
- return module_ref ? S_FALSE : S_OK; + /* Some apps crash if we let mshtml be unloaded. + * Until we figure out why, don't let mshtml be unloaded. + */ + return S_FALSE; /* module_ref ? S_FALSE : S_OK; */
I think we should prevent unloading mshtml.dll if Gecko was loaded. To do it I'd suggest to increase module count in load_gecko function (it will never be decreased so DLL won't be unloaded).
Jacek