mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-05-23 21:50:21 +02:00
fix compile on Fpc/Mac. Handle is PtrUInt. IFDEF MACOS only matches Delphi
This commit is contained in:
parent
06bcf00dd7
commit
7c94142d25
@ -2334,7 +2334,7 @@ end;
|
|||||||
|
|
||||||
function ValidCefWindowHandle(aHandle : TCefWindowHandle) : boolean;
|
function ValidCefWindowHandle(aHandle : TCefWindowHandle) : boolean;
|
||||||
begin
|
begin
|
||||||
{$IFDEF MACOSX}
|
{$IFDEF MACOS}
|
||||||
Result := (aHandle <> nil);
|
Result := (aHandle <> nil);
|
||||||
{$ELSE}
|
{$ELSE}
|
||||||
Result := (aHandle <> 0);
|
Result := (aHandle <> 0);
|
||||||
@ -2343,7 +2343,7 @@ end;
|
|||||||
|
|
||||||
procedure InitializeWindowHandle(var aHandle : TCefWindowHandle);
|
procedure InitializeWindowHandle(var aHandle : TCefWindowHandle);
|
||||||
begin
|
begin
|
||||||
{$IFDEF MACOSX}
|
{$IFDEF MACOS}
|
||||||
aHandle := nil;
|
aHandle := nil;
|
||||||
{$ELSE}
|
{$ELSE}
|
||||||
aHandle := 0;
|
aHandle := 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user