From a2c819ac2632dedc7806a45741c82f0862d2f5df Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Sun, 8 Jan 2012 18:11:00 -0500 Subject: [PATCH] Make hsRAMStream's read() NOT throw an exception. We now match hsUNIXStream::Read()'s functionality --- Sources/Plasma/CoreLib/hsStream.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/Sources/Plasma/CoreLib/hsStream.cpp b/Sources/Plasma/CoreLib/hsStream.cpp index 32cd5317..8593ca4b 100644 --- a/Sources/Plasma/CoreLib/hsStream.cpp +++ b/Sources/Plasma/CoreLib/hsStream.cpp @@ -1054,10 +1054,7 @@ hsBool hsRAMStream::AtEnd() UInt32 hsRAMStream::Read(UInt32 byteCount, void * buffer) { if (fBytesRead + byteCount > fAppender.Count() * fAppender.ElemSize()) - { - hsThrow("Attempting to read past end of stream"); byteCount = (fAppender.Count() * fAppender.ElemSize()) - fBytesRead; - } fBytesRead += byteCount; fPosition += byteCount;