Explorar o código

Merged revisions 590 via svnmerge from
/trunk

git-svn-id: branches/fixes_2_0@677 -

peter %!s(int64=20) %!d(string=hai) anos
pai
achega
89edaa9d5d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      rtl/objpas/classes/streams.inc

+ 1 - 1
rtl/objpas/classes/streams.inc

@@ -600,7 +600,7 @@ begin
   else
     begin
       Result:=Reallocmem(FMemory,Newcapacity);
-      If Result=Nil then
+      If (Result=Nil) and (Newcapacity>0) then
         Raise EStreamError.Create(SMemoryStreamError);
     end;
 end;