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

This commit is contained in:
amusil%netscape.com 1999-06-04 22:52:49 +00:00
parent 1fb68e4d70
commit ba1eb7a956
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;