On 12/2/10 12:49 PM, Alexandre Julliard wrote:
Jacek Cabanjacek@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.
Jacek