follow-up to the fix for bug 344425, supporting NP_GetEntryPoints on Intel Mac OS X. Use NPAPI error values. b=344425

This commit is contained in:
joshmoz%gmail.com 2006-09-22 06:40:48 +00:00
Родитель 64f2c6054f
Коммит 8fe9914cb7
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -430,9 +430,9 @@ ns4xPlugin::ns4xPlugin(NPPluginFuncs* callbacks, PRLibrary* aLibrary,
if (usesGetEntryPoints) {
// we call NP_Initialize before getting function pointers to match
// WebKit's behavior. They implemented this first on Mac OS X.
if (pfnInitialize(&(ns4xPlugin::CALLBACKS)) != NS_OK)
if (pfnInitialize(&(ns4xPlugin::CALLBACKS)) != NPERR_NO_ERROR)
return;
if (pfnGetEntryPoints(&np_callbacks) != NS_OK)
if (pfnGetEntryPoints(&np_callbacks) != NPERR_NO_ERROR)
return;
}
else