Correct return types on boot

This commit is contained in:
Soreepeong 2022-03-31 23:29:37 +09:00
parent 0cf9b80172
commit 6da762dc3c
3 changed files with 5 additions and 5 deletions

View file

@ -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;

View file

@ -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);

View file

@ -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");