Permalink
Browse files

Merge pull request #60 from sreichholf/master

NPP_NewStream - return NPERR_NO_DATA instead of NPERR_NO_ERROR when a (e.g. unsolicited) stream won't be handled by the plugin
  • Loading branch information...
2 parents 98ca15d + 20f8161 commit 924a0d5bd1801795312bb7d4664b29abec91cc4d @taxilian taxilian committed May 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/NpapiCore/NpapiPlugin.cpp
@@ -311,7 +311,7 @@ NPError NpapiPlugin::NewStream(NPMIMEType type, NPStream* stream, NPBool seekabl
{
NpapiStream* s = static_cast<NpapiStream*>( stream->notifyData );
// check for streams we did not request or create
- if ( !s ) return NPERR_NO_ERROR;
+ if ( !s ) return NPERR_NO_DATA;
s->setMimeType( type );
s->setStream( stream );

0 comments on commit 924a0d5

Please sign in to comment.