You've already forked CEF4Delphi
mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-11-23 21:34:53 +02:00
Fixed TChromium.OnDevToolsEvent declaration
Added more parameter checks to CefString. Added TChromium.DestroyAllHandlersAndObservers which includes DestroyDevToolsMsgObserver to fix issue #288.
This commit is contained in:
@@ -381,7 +381,7 @@ end;
|
||||
|
||||
function CefString(const str: PCefString): ustring;
|
||||
begin
|
||||
if (str <> nil) then
|
||||
if (str <> nil) and (str^.str <> nil) and (str^.length > 0) and (str^.length < nativeuint(high(integer))) then
|
||||
SetString(Result, str^.str, str^.length)
|
||||
else
|
||||
Result := '';
|
||||
|
||||
Reference in New Issue
Block a user