зеркало из https://github.com/mozilla/pjs.git
Fixing bug 256898. Initialize all NPN callback functions, and correct an error in the prototype for NPN_IdentifierIsString(). r+sr=brendan@mozilla.org
This commit is contained in:
Родитель
d0c0785232
Коммит
0d2cd5b162
|
@ -254,7 +254,7 @@ NPIdentifier NPN_GetStringIdentifier(const NPUTF8 *name);
|
|||
void NPN_GetStringIdentifiers(const NPUTF8 **names, int32_t nameCount,
|
||||
NPIdentifier *identifiers);
|
||||
NPIdentifier NPN_GetIntIdentifier(int32_t intid);
|
||||
bool NPN_IdentifierIsString(NPIdentifier *identifier);
|
||||
bool NPN_IdentifierIsString(NPIdentifier identifier);
|
||||
|
||||
/*
|
||||
The NPUTF8 returned from NPN_UTF8FromIdentifier SHOULD be freed.
|
||||
|
|
|
@ -338,6 +338,9 @@ ns4xPlugin::CheckClassInitialized(void)
|
|||
CALLBACKS.utf8fromidentifier =
|
||||
NewNPN_UTF8FromIdentifierProc(FP2TV(_utf8fromidentifier));
|
||||
|
||||
CALLBACKS.intfromidentifier =
|
||||
NewNPN_IntFromIdentifierProc(FP2TV(_intfromidentifier));
|
||||
|
||||
CALLBACKS.createobject =
|
||||
NewNPN_CreateObjectProc(FP2TV(_createobject));
|
||||
|
||||
|
@ -362,6 +365,12 @@ ns4xPlugin::CheckClassInitialized(void)
|
|||
CALLBACKS.removeproperty =
|
||||
NewNPN_RemovePropertyProc(FP2TV(_removeproperty));
|
||||
|
||||
CALLBACKS.hasproperty =
|
||||
NewNPN_HasPropertyProc(FP2TV(_hasproperty));
|
||||
|
||||
CALLBACKS.hasmethod =
|
||||
NewNPN_HasMethodProc(FP2TV(_hasmethod));
|
||||
|
||||
CALLBACKS.releasevariantvalue =
|
||||
NewNPN_ReleaseVariantValueProc(FP2TV(_releasevariantvalue));
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче