feat: set DOTNET_legacyCorruptedStateExceptionsPolicy

This commit is contained in:
goat 2021-08-19 22:55:03 +02:00
parent 42e5853760
commit 7a1e78cb48
No known key found for this signature in database
GPG key ID: F18F057873895461

View file

@ -34,6 +34,8 @@ int InitializeClrAndGetEntryPoint(
int result; int result;
CoreCLR clr; CoreCLR clr;
SetEnvironmentVariable(L"DOTNET_MULTILEVEL_LOOKUP", L"0"); SetEnvironmentVariable(L"DOTNET_MULTILEVEL_LOOKUP", L"0");
//SetEnvironmentVariable(L"COMPlus_legacyCorruptedStateExceptionsPolicy", L"1");
SetEnvironmentVariable(L"DOTNET_legacyCorruptedStateExceptionsPolicy", L"1");
wchar_t* dotnet_path; wchar_t* dotnet_path;
wchar_t* _appdata; wchar_t* _appdata;