Should only call SetWindow() if the plugin has not been stopped.

git-svn-id: svn://10.0.0.236/trunk@33837 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
amusil%netscape.com
1999-06-04 22:52:49 +00:00
parent 562f22861f
commit ddf982c56b
2 changed files with 2 additions and 2 deletions

View File

@@ -463,7 +463,7 @@ NS_IMETHODIMP ns4xPluginInstance::SetWindow(nsPluginWindow* window)
{
// XXX 4.x plugins don't want a SetWindow(NULL).
if (window == NULL)
if (window == NULL || mStarted == PR_FALSE)
return NS_OK;
NPError error;

View File

@@ -463,7 +463,7 @@ NS_IMETHODIMP ns4xPluginInstance::SetWindow(nsPluginWindow* window)
{
// XXX 4.x plugins don't want a SetWindow(NULL).
if (window == NULL)
if (window == NULL || mStarted == PR_FALSE)
return NS_OK;
NPError error;