Hi All:

In porting some of the code from Windows to the Macintosh, I've run into a bit of a problem. The Windows developer used the following:

NPNFuncs.getvalue(myNPInstance, NPNVDOMWindow, reinterpret_cast<void **>(&domWin));
.
.
more code follows needing domWin.
.
.

On the Mac, that call failed, setting domWin to null, and returning NPP_GENERIC_ERROR (even though the Windows code doesn't check the result).

When debugging on the Mac, the switch statement in _getValue (in ns4xPlugin.cpp) takes the default case, returning NPP_GENERIC_ERROR. The variable 'variable', contains the value 16777228, which is: 0x0100000C. NPNVDOMWindow (in the switch code) appears to be 0x1100000C. The difference seems to be _NP_ABI_MIXIN_FOR_GCC3 is being set to 0 in my plugin rather than 0x100000000.

How do I make my plugin and mozilla build the same way? Is it a missing entry in mozconfig?

Thanks in advance for your time


John Cebasek
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to