From 7a1e78cb4810ecb3207b95bfd5968ff946f22030 Mon Sep 17 00:00:00 2001 From: goat <16760685+goaaats@users.noreply.github.com> Date: Thu, 19 Aug 2021 22:55:03 +0200 Subject: [PATCH] feat: set DOTNET_legacyCorruptedStateExceptionsPolicy --- lib/CoreCLR/boot.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/CoreCLR/boot.cpp b/lib/CoreCLR/boot.cpp index 0fc9ca9d5..2d00c1aa6 100644 --- a/lib/CoreCLR/boot.cpp +++ b/lib/CoreCLR/boot.cpp @@ -34,6 +34,8 @@ int InitializeClrAndGetEntryPoint( int result; CoreCLR clr; 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* _appdata;