+ small speedup of memoryimage.setsize

This commit is contained in:
michael 2005-01-31 22:12:23 +00:00
parent 4f43c7e09f
commit 6b1e79316f

View File

@ -488,7 +488,7 @@ begin
else
begin
GetMem (NewData, r);
Fillchar (Newdata^[0], r, 0);
FillWord (Newdata^[0], r div sizeof(word), 0);
end;
// MG: missing "and (NewData<>nil)"
if (old <> 0) and assigned(FData) and (NewData<>nil) then