Skip to content

Commit

Permalink
Merge pull request #56 from exn64/patch-1
Browse files Browse the repository at this point in the history
Parent process null check
  • Loading branch information
XenocodeRCE authored Dec 1, 2019
2 parents 9d8aa9c + ced38d1 commit 7889971
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Confuser.Runtime/AntiDebug.Win32.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ static void Initialize() {
Environment.FailFast(null);
//Anti dnspy
Process here = GetParentProcess();
if (here.ProcessName.ToLower().Contains("dnspy"))
if (here != null && here.ProcessName.ToLower().Contains("dnspy"))
Environment.FailFast("");

var thread = new Thread(Worker);
Expand Down

0 comments on commit 7889971

Please sign in to comment.