1
0
mirror of https://github.com/salvadordf/CEF4Delphi.git synced 2025-06-12 22:07:39 +02:00

Lazarus/FPC compatibility fix.

This commit is contained in:
Salvador Díaz Fau
2018-10-04 21:24:59 +02:00
parent 1624d8712d
commit 2b37fa289f

View File

@ -350,7 +350,11 @@ begin
try
EnterCriticalSection(FCriticalSection);
TempTotal := max(size, FGrow);
if (size < FGrow) then
TempTotal := FGrow
else
TempTotal := size;
inc(TempTotal, FBufferSize);
ReallocMem(FBuffer, TempTotal);