From ccd0a3fd004d7fc6953f613125a7d281cb1e08a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Salvador=20D=C3=ADaz=20Fau?= Date: Fri, 17 Oct 2025 18:34:48 +0200 Subject: [PATCH] Show an error message when CEF initialization is not successfull. --- source/uCEFApplicationCore.pas | 4 ++-- update_CEF4Delphi.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/uCEFApplicationCore.pas b/source/uCEFApplicationCore.pas index ff4b4261..13acec3c 100644 --- a/source/uCEFApplicationCore.pas +++ b/source/uCEFApplicationCore.pas @@ -3310,8 +3310,8 @@ begin if (TempErrorCode <> CEF_RESULT_CODE_NORMAL_EXIT) then begin FLastErrorMessage := 'InitializeLibrary failed.' + CRLF + - ' ExitCode(' + inttostr(ExitCode) + ') : ' + - CefResultCodeToString(ExitCode); + ' ExitCode(' + inttostr(TempErrorCode) + ') : ' + + CefResultCodeToString(TempErrorCode); ShowErrorMessageDlg(FLastErrorMessage); end; end; diff --git a/update_CEF4Delphi.json b/update_CEF4Delphi.json index 51588de4..ba11f9d1 100644 --- a/update_CEF4Delphi.json +++ b/update_CEF4Delphi.json @@ -2,7 +2,7 @@ "UpdateLazPackages" : [ { "ForceNotify" : true, - "InternalVersion" : 803, + "InternalVersion" : 804, "Name" : "cef4delphi_lazarus.lpk", "Version" : "141.0.6" }