search for: nperr_invalid_instance_error

Displaying 2 results from an estimated 2 matches for "nperr_invalid_instance_error".

2007 Nov 06
1
src/plugin.c
...e_sure_this_thing_stays_in_memory) { + g_module_close (module); + return FALSE; + } g_module_make_resident (module); g_module_close (module); + inited = TRUE; return TRUE; } @@ -157,8 +166,12 @@ plugin_new (NPMIMEType mime_type, NPP instance, if (instance == NULL) return NPERR_INVALID_INSTANCE_ERROR; - if (!make_sure_this_thing_stays_in_memory ()) + if (!swfdec_mozilla_make_sure_this_thing_stays_in_memory ()) { + g_printerr ("Ensuring the plugin stays in memory did not work.\n" + "This happens when the plugin was copied from its installed location at " PLUGIN...
2007 Nov 06
0
configure.ac src/Makefile.am src/plugin.c
...resident (module); + g_module_close (module); + return TRUE; +} + static NPError plugin_new (NPMIMEType mime_type, NPP instance, uint16_t mode, int16_t argc, char *argn[], char *argv[], @@ -138,9 +157,8 @@ plugin_new (NPMIMEType mime_type, NPP instance, if (instance == NULL) return NPERR_INVALID_INSTANCE_ERROR; - if (CallNPN_SetValueProc (mozilla_funcs.setvalue, instance, - NPPVpluginKeepLibraryInMemory, (void *) PR_TRUE)) - return NPERR_INCOMPATIBLE_VERSION_ERROR; + if (!make_sure_this_thing_stays_in_memory ()) + return NPERR_INVALID_INSTANCE_ERROR; #if 0 /* see https://bugzilla.mozilla.or...