diff options
Diffstat (limited to 'apps/mozilla/npunix.c')
-rw-r--r-- | apps/mozilla/npunix.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/apps/mozilla/npunix.c b/apps/mozilla/npunix.c index 1c742d6d..f705a5f1 100644 --- a/apps/mozilla/npunix.c +++ b/apps/mozilla/npunix.c @@ -163,7 +163,7 @@ jref NPN_GetJavaPeer(NPP instance) * Wrapper functions : Netscape Navigator -> plugin * * These functions let the plugin developer just create the APIs - * as documented and defined in npapi.h, without needing to + * as documented and defined in npapi.h, without needing to * install those functions in the function table or worry about * setting up globals for 68K plugins. * @@ -176,7 +176,7 @@ Private_New(NPMIMEType pluginType, NPP instance, uint16 mode, NPError ret; PLUGINDEBUGSTR("New"); ret = NPP_New(pluginType, instance, mode, argc, argn, argv, saved); - return ret; + return ret; } NPError @@ -260,7 +260,7 @@ Private_GetJavaClass(void) return NULL; } -/*********************************************************************** +/*********************************************************************** * * These functions are located automagically by netscape. * @@ -313,12 +313,12 @@ NP_Initialize(NPNetscapeFuncs* nsTable, NPPluginFuncs* pluginFuncs) NPError err = NPERR_NO_ERROR; PLUGINDEBUGSTR("NP_Initialize"); - + /* validate input parameters */ if ((nsTable == NULL) || (pluginFuncs == NULL)) err = NPERR_INVALID_FUNCTABLE_ERROR; - + /* * Check the major version passed in Netscape's function table. * We won't load if the major version is newer than what we expect. @@ -333,11 +333,11 @@ NP_Initialize(NPNetscapeFuncs* nsTable, NPPluginFuncs* pluginFuncs) err = NPERR_INCOMPATIBLE_VERSION_ERROR; if (nsTable->size < sizeof(NPNetscapeFuncs)) err = NPERR_INVALID_FUNCTABLE_ERROR; - if (pluginFuncs->size < sizeof(NPPluginFuncs)) + if (pluginFuncs->size < sizeof(NPPluginFuncs)) err = NPERR_INVALID_FUNCTABLE_ERROR; } - - + + if (err == NPERR_NO_ERROR) { /* * Copy all the fields of Netscape function table into our @@ -386,7 +386,7 @@ NP_Initialize(NPNetscapeFuncs* nsTable, NPPluginFuncs* pluginFuncs) err = NPP_Initialize(); } - + return err; } @@ -400,7 +400,8 @@ NP_Initialize(NPNetscapeFuncs* nsTable, NPPluginFuncs* pluginFuncs) NPError NP_Shutdown(void) { - PLUGINDEBUGSTR("NP_Shutdown"); + PLUGINDEBUGSTR("NP_Shutdown"); NPP_Shutdown(); return NPERR_NO_ERROR; } + |