From 8c836f92ca93b65ff39df226e862a200b97bee8f Mon Sep 17 00:00:00 2001 From: "av%netscape.com" Date: Thu, 28 Mar 2002 22:33:44 +0000 Subject: [PATCH] Fix for 133651 -- correct ns4xPluginInstance::GetValue implementation, r=peterl, sr=beard, a=asa --- modules/plugin/base/src/ns4xPluginInstance.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/modules/plugin/base/src/ns4xPluginInstance.cpp b/modules/plugin/base/src/ns4xPluginInstance.cpp index fa22f95aff00..e12a6c433f4a 100644 --- a/modules/plugin/base/src/ns4xPluginInstance.cpp +++ b/modules/plugin/base/src/ns4xPluginInstance.cpp @@ -1103,9 +1103,6 @@ NS_IMETHODIMP ns4xPluginInstance::HandleEvent(nsPluginEvent* event, PRBool* hand NS_IMETHODIMP ns4xPluginInstance :: GetValue(nsPluginInstanceVariable variable, void *value) { - if(!mStarted) - return NS_OK; - nsresult res = NS_OK; switch (variable) { @@ -1126,7 +1123,7 @@ NS_IMETHODIMP ns4xPluginInstance :: GetValue(nsPluginInstanceVariable variable, break; default: - if(fCallbacks->getvalue) { + if(fCallbacks->getvalue && mStarted) { NS_TRY_SAFE_CALL_RETURN(res, CallNPP_GetValueProc(fCallbacks->getvalue, &fNPP,