fixed setting memstream capacity to 0

git-svn-id: trunk@590 -
This commit is contained in:
Vincent Snijders 2005-07-05 21:54:32 +00:00
parent f6ca017761
commit a879211175

View File

@ -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;