You've already forked CEF4Delphi
mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-11-23 21:34:53 +02:00
Fix for crashes on old Delphi versions
This commit is contained in:
@@ -42,10 +42,16 @@ unit uCEFChromiumWindow;
|
||||
{$MINENUMSIZE 4}
|
||||
{$ENDIF}
|
||||
|
||||
{$I cef.inc}
|
||||
|
||||
interface
|
||||
|
||||
uses
|
||||
{$IFDEF DELPHI16_UP}
|
||||
WinApi.Windows, System.Classes, WinApi.Messages,
|
||||
{$ELSE}
|
||||
Windows, Classes, Messages,
|
||||
{$ENDIF}
|
||||
uCEFWindowParent, uCEFChromium, uCEFInterfaces, uCEFConstants;
|
||||
|
||||
type
|
||||
@@ -76,7 +82,11 @@ type
|
||||
implementation
|
||||
|
||||
uses
|
||||
{$IFDEF DELPHI16_UP}
|
||||
System.SysUtils;
|
||||
{$ELSE}
|
||||
SysUtils;
|
||||
{$ENDIF}
|
||||
|
||||
constructor TChromiumWindow.Create(AOwner: TComponent);
|
||||
begin
|
||||
|
||||
Reference in New Issue
Block a user