diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2003-03-26 11:25:38 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2003-03-26 11:25:38 +0000 |
commit | b7ea5b0ca567c0ce8272148244e4579dcec548a7 (patch) | |
tree | d8b496c654d38ade6f6132438add9349e6633f2d /io/source/stm/omark.cxx | |
parent | f8183bfe7302f9822ba3604c28780efea2dda6cf (diff) |
MWS_SRX644: migrate branch mws_srx644 -> HEAD
Diffstat (limited to 'io/source/stm/omark.cxx')
-rw-r--r-- | io/source/stm/omark.cxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/io/source/stm/omark.cxx b/io/source/stm/omark.cxx index 4f3254dd9888..85e112516d6b 100644 --- a/io/source/stm/omark.cxx +++ b/io/source/stm/omark.cxx @@ -2,9 +2,9 @@ * * $RCSfile: omark.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: jbu $ $Date: 2002-09-18 10:02:24 $ + * last change: $Author: hr $ $Date: 2003-03-26 12:21:47 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -760,6 +760,12 @@ void OMarkableInputStream::skipBytes(sal_Int32 nBytesToSkip) BufferSizeExceededException, RuntimeException) { + if ( nBytesToSkip < 0 ) + throw BufferSizeExceededException( + ::rtl::OUString::createFromAscii( "precondition not met: XInputStream::skipBytes: non-negative integer required!" ), + *this + ); + // this method is blocking sal_Int32 nRead; Sequence<sal_Int8> seqDummy( nBytesToSkip ); |