calling CreatePluginInstance instead of CreateInstance, so MIME type is available early.
git-svn-id: svn://10.0.0.236/trunk@24134 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -768,7 +768,7 @@ NPP_New(NPMIMEType pluginType,
|
||||
|
||||
// Create a new plugin instance and start it.
|
||||
nsIPluginInstance* pluginInstance = NULL;
|
||||
thePlugin->CreateInstance(thePluginManager, nsIPluginInstance::GetIID(), (void**)&pluginInstance);
|
||||
thePlugin->CreatePluginInstance(thePluginManager, nsIPluginInstance::GetIID(), pluginType, (void**)&pluginInstance);
|
||||
if (pluginInstance == NULL) {
|
||||
return NPERR_OUT_OF_MEMORY_ERROR;
|
||||
}
|
||||
|
||||
@@ -768,7 +768,7 @@ NPP_New(NPMIMEType pluginType,
|
||||
|
||||
// Create a new plugin instance and start it.
|
||||
nsIPluginInstance* pluginInstance = NULL;
|
||||
thePlugin->CreateInstance(thePluginManager, nsIPluginInstance::GetIID(), (void**)&pluginInstance);
|
||||
thePlugin->CreatePluginInstance(thePluginManager, nsIPluginInstance::GetIID(), pluginType, (void**)&pluginInstance);
|
||||
if (pluginInstance == NULL) {
|
||||
return NPERR_OUT_OF_MEMORY_ERROR;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user