You've already forked CEF4Delphi
mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-06-22 22:17:48 +02:00
Bug fix #154
Fixed an issue in SchemeRegistrationBrowser with big streams. Now THelloScheme.ReadResponse copies the stream in chunks correctly.
This commit is contained in:
@ -201,9 +201,11 @@ function THelloScheme.ReadResponse(const dataOut : Pointer;
|
||||
begin
|
||||
if (FStream <> nil) and (DataOut <> nil) then
|
||||
begin
|
||||
FStream.Seek(0, soFromBeginning);
|
||||
// This function will be called several times because the stream is bigger
|
||||
// than bytesToRead. Each time we will copy a chunk of the stream to
|
||||
// DataOut.
|
||||
BytesRead := FStream.Read(DataOut^, BytesToRead);
|
||||
Result := True;
|
||||
Result := (BytesRead > 0);
|
||||
end
|
||||
else
|
||||
Result := False;
|
||||
|
Reference in New Issue
Block a user