You've already forked CEF4Delphi
mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-11-23 21:34:53 +02:00
Lazarus/FPC compatibility fix.
This commit is contained in:
@@ -350,7 +350,11 @@ begin
|
|||||||
try
|
try
|
||||||
EnterCriticalSection(FCriticalSection);
|
EnterCriticalSection(FCriticalSection);
|
||||||
|
|
||||||
TempTotal := max(size, FGrow);
|
if (size < FGrow) then
|
||||||
|
TempTotal := FGrow
|
||||||
|
else
|
||||||
|
TempTotal := size;
|
||||||
|
|
||||||
inc(TempTotal, FBufferSize);
|
inc(TempTotal, FBufferSize);
|
||||||
|
|
||||||
ReallocMem(FBuffer, TempTotal);
|
ReallocMem(FBuffer, TempTotal);
|
||||||
|
|||||||
Reference in New Issue
Block a user