From f2113a9ff2c5950b49de47f8d622a4ead36c7d30 Mon Sep 17 00:00:00 2001 From: "beard%netscape.com" Date: Sun, 14 Mar 1999 20:09:57 +0000 Subject: [PATCH] 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 --- mozilla/modules/plugin/bad/badapter.cpp | 2 +- mozilla/modules/plugin/samples/backward/badapter.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/modules/plugin/bad/badapter.cpp b/mozilla/modules/plugin/bad/badapter.cpp index bfe5edff17d..1dc289ea8fc 100644 --- a/mozilla/modules/plugin/bad/badapter.cpp +++ b/mozilla/modules/plugin/bad/badapter.cpp @@ -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; } diff --git a/mozilla/modules/plugin/samples/backward/badapter.cpp b/mozilla/modules/plugin/samples/backward/badapter.cpp index bfe5edff17d..1dc289ea8fc 100644 --- a/mozilla/modules/plugin/samples/backward/badapter.cpp +++ b/mozilla/modules/plugin/samples/backward/badapter.cpp @@ -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; }