You've already forked CEF4Delphi
mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-07-12 22:30:17 +02:00
Added renamed constants for backwards compatibility
This commit is contained in:
@ -897,7 +897,7 @@ begin
|
|||||||
{$IFDEF MSWINDOWS}
|
{$IFDEF MSWINDOWS}
|
||||||
if GetDLLHeaderMachine(LibCefPath, TempMachine) then
|
if GetDLLHeaderMachine(LibCefPath, TempMachine) then
|
||||||
case TempMachine of
|
case TempMachine of
|
||||||
IMAGE_FILE_MACHINE_I386 :
|
CEF_IMAGE_FILE_MACHINE_I386 :
|
||||||
if Is32BitProcess then
|
if Is32BitProcess then
|
||||||
Result := True
|
Result := True
|
||||||
else
|
else
|
||||||
@ -910,7 +910,7 @@ begin
|
|||||||
ShowErrorMessageDlg(TempString);
|
ShowErrorMessageDlg(TempString);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
IMAGE_FILE_MACHINE_AMD64 :
|
CEF_IMAGE_FILE_MACHINE_AMD64 :
|
||||||
if not(Is32BitProcess) then
|
if not(Is32BitProcess) then
|
||||||
Result := True
|
Result := True
|
||||||
else
|
else
|
||||||
|
@ -400,6 +400,12 @@ const
|
|||||||
CEF4DELPHI_URL = 'https://github.com/salvadordf/CEF4Delphi';
|
CEF4DELPHI_URL = 'https://github.com/salvadordf/CEF4Delphi';
|
||||||
CRLF = #13 + #10;
|
CRLF = #13 + #10;
|
||||||
|
|
||||||
|
// These contants are declared in the "Windows" unit but
|
||||||
|
// some old Delphi versions don't have them.
|
||||||
|
// We have to add "CEF_" to be compatible with C++ Builder.
|
||||||
|
CEF_IMAGE_FILE_MACHINE_I386 = $014C;
|
||||||
|
CEF_IMAGE_FILE_MACHINE_AMD64 = $8664;
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
Reference in New Issue
Block a user