Skip to content
This repository has been archived by the owner on Jan 27, 2019. It is now read-only.

Update AntiDebug.Win32.cs #426

Merged
merged 1 commit into from
Feb 3, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update AntiDebug.Win32.cs
Fixes a bug with Windows 8/10 that causes a crash using OutputDebugString
  • Loading branch information
gubed committed Feb 1, 2016
commit dac89aec439ab0e583729b1ceff0aee75a4f2619
4 changes: 2 additions & 2 deletions Confuser.Runtime/AntiDebug.Win32.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ static void Initialize() {
[DllImport("kernel32.dll")]
static extern bool IsDebuggerPresent();

[DllImport("kernel32.dll")]
[DllImport("kernel32.dll", CharSet = CharSet.Auto)]
static extern int OutputDebugString(string str);

static void Worker(object thread) {
Expand Down Expand Up @@ -67,4 +67,4 @@ static void Worker(object thread) {
}
}
}
}
}