[PATCH 5/7] npmshtml: Added Mozilla plugin for mshtml ActiveX controls.

Jacek Caban jacek at codeweavers.com
Thu Dec 2 06:53:54 CST 2010

On 12/2/10 12:49 PM, Alexandre Julliard wrote:
> Jacek Caban<jacek at codeweavers.com>  writes:
>> I know that this patch is the most questionable. Gecko expects us to
>> give it a DLL named np*.dll, so we can't do it in mshtml. Also, this
>> plugin will be visible to other NPAPI-based browsers running in Wine
>> (that's a matter of change in the next Gecko release), so it's good
>> that it's a tiny wrapper that fails to load if mshtml is not loaded
>> (meaning that we're not running in Wine Gecko).
> This prevents the dll registration code from running, since mshtml is
> not loaded at that point.

Um, that was stupid from me. I've previously made NP_* function failing, 
but it didn't work well, so I've changed it to DllMain. I don't see a 
clean way to fix registration. We could set these registries from 
mshtml.dll, but then we lose the ability to easily unregister npmshtml.dll.

I've sent a patch that checks if it's running from rundll32 or regsvr32 
and allows the DLL to load them. I hope it's not too hackish.


More information about the wine-devel mailing list