diff options
author | Oliver Bolte <obo@openoffice.org> | 2004-03-17 09:13:54 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2004-03-17 09:13:54 +0000 |
commit | cffc9233b4c8d9eddaaf22a15b868c368507de37 (patch) | |
tree | 2002aafe531a59241d882d5255ac724c1d7f06ef /extensions | |
parent | 6a6e55072f3bf3c0d9e2ba5bddb2fef437e01cd6 (diff) |
INTEGRATION: CWS vcl18 (1.9.138); FILE MERGED
2004/02/10 14:56:11 pl 1.9.138.1: #i12911# possibly provide seekable streams
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/plugin/base/nfuncs.cxx | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/extensions/source/plugin/base/nfuncs.cxx b/extensions/source/plugin/base/nfuncs.cxx index 1d1a74ba2d45..6b14754c39b5 100644 --- a/extensions/source/plugin/base/nfuncs.cxx +++ b/extensions/source/plugin/base/nfuncs.cxx @@ -2,9 +2,9 @@ * * $RCSfile: nfuncs.cxx,v $ * - * $Revision: 1.9 $ + * $Revision: 1.10 $ * - * last change: $Author: vg $ $Date: 2003-05-28 12:37:29 $ + * last change: $Author: obo $ $Date: 2004-03-17 10:13:54 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -240,7 +240,12 @@ extern "C" { PluginStream* pStream = pImpl->getStreamFromNPStream( stream ); if( pStream ) - delete pStream; + { + if( pStream->getStreamType() == InputStream ) + static_cast<PluginInputStream*>(pStream)->releaseSelf(); + else + delete pStream; + } return NPERR_NO_ERROR; } @@ -455,7 +460,7 @@ extern "C" { nNow = pPlugin->getPluginComm()-> NPP_WriteReady( pPlugin->getNPPInstance(), stream ); - pPlugin->getPluginComm()-> + nNow = pPlugin->getPluginComm()-> NPP_Write( pPlugin->getNPPInstance(), stream, rangeList->offset + nPos, |