Fix incorrect structure usage for hostfxr params siize

#2037
This commit is contained in:
Wojtek Figat
2023-12-06 11:20:32 +01:00
parent 7a7a43b897
commit 8faaaaaf54

View File

@@ -1657,7 +1657,7 @@ bool InitHostfxr()
// Get path to hostfxr library
get_hostfxr_parameters get_hostfxr_params;
get_hostfxr_params.size = sizeof(hostfxr_initialize_parameters);
get_hostfxr_params.size = sizeof(get_hostfxr_parameters);
get_hostfxr_params.assembly_path = libraryPath.Get();
#if PLATFORM_MAC
::String macOSDotnetRoot = TEXT("/usr/local/share/dotnet");