|
@@ -344,7 +344,7 @@ function TCustomMemoryStream.Read(var Buffer; Count: Longint): Longint;
|
|
|
|
|
|
begin
|
|
begin
|
|
Result:=0;
|
|
Result:=0;
|
|
- If FSize>0 and FPosition<Fsize then
|
|
|
|
|
|
+ If (FSize>0) and (FPosition<Fsize) then
|
|
begin
|
|
begin
|
|
Result:=FSize-FPosition;
|
|
Result:=FSize-FPosition;
|
|
If Result>Count then Result:=Count;
|
|
If Result>Count then Result:=Count;
|
|
@@ -610,7 +610,10 @@ end;
|
|
|
|
|
|
{
|
|
{
|
|
$Log$
|
|
$Log$
|
|
- Revision 1.8 1998-10-02 22:41:30 michael
|
|
|
|
|
|
+ Revision 1.9 1999-01-28 23:55:42 florian
|
|
|
|
+ * made it compilable
|
|
|
|
+
|
|
|
|
+ Revision 1.8 1998/10/02 22:41:30 michael
|
|
+ Added exceptions for error handling
|
|
+ Added exceptions for error handling
|
|
|
|
|
|
Revision 1.7 1998/08/24 12:38:24 michael
|
|
Revision 1.7 1998/08/24 12:38:24 michael
|
|
@@ -634,4 +637,4 @@ end;
|
|
Revision 1.1 1998/05/04 14:30:12 michael
|
|
Revision 1.1 1998/05/04 14:30:12 michael
|
|
* Split file according to Class; implemented dummys for all methods, so unit compiles.
|
|
* Split file according to Class; implemented dummys for all methods, so unit compiles.
|
|
|
|
|
|
-}
|
|
|
|
|
|
+}
|