diff --git a/lib/CoreCLR/CoreCLR.cpp b/lib/CoreCLR/CoreCLR.cpp index 6f4d337b8..265f1869e 100644 --- a/lib/CoreCLR/CoreCLR.cpp +++ b/lib/CoreCLR/CoreCLR.cpp @@ -37,12 +37,12 @@ int CoreCLR::load_hostfxr(const struct get_hostfxr_parameters* parameters) && m_hostfxr_close_fptr ? 0 : -1; } -bool CoreCLR::load_runtime(const std::wstring& runtime_config_path) +int CoreCLR::load_runtime(const std::wstring& runtime_config_path) { return CoreCLR::load_runtime(runtime_config_path, nullptr); } -bool CoreCLR::load_runtime(const std::wstring& runtime_config_path, const struct hostfxr_initialize_parameters* parameters) +int CoreCLR::load_runtime(const std::wstring& runtime_config_path, const struct hostfxr_initialize_parameters* parameters) { int result; diff --git a/lib/CoreCLR/CoreCLR.h b/lib/CoreCLR/CoreCLR.h index 235bf9923..71c62d90e 100644 --- a/lib/CoreCLR/CoreCLR.h +++ b/lib/CoreCLR/CoreCLR.h @@ -12,8 +12,8 @@ class CoreCLR { int load_hostfxr(); int load_hostfxr(const get_hostfxr_parameters* parameters); - bool load_runtime(const std::wstring& runtime_config_path); - bool load_runtime( + int load_runtime(const std::wstring& runtime_config_path); + int load_runtime( const std::wstring& runtime_config_path, const struct hostfxr_initialize_parameters* parameters); diff --git a/lib/CoreCLR/boot.cpp b/lib/CoreCLR/boot.cpp index 2fde7e221..63636e709 100644 --- a/lib/CoreCLR/boot.cpp +++ b/lib/CoreCLR/boot.cpp @@ -90,7 +90,7 @@ int InitializeClrAndGetEntryPoint( printf("Loading hostfxr... "); if ((result = g_clr->load_hostfxr(&init_parameters)) != 0) { - printf("\nError: Failed to load the `hostfxr` library (err=%d)\n", result); + printf("\nError: Failed to load the `hostfxr` library (err=0x%08x)\n", result); return result; } printf("Done!\n");