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

Commit fa2a00b

Browse files
committed
Fix AppDomain creation causing cctor executing twice.
Fix #423
1 parent 78e78fa commit fa2a00b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Confuser.Runtime/AntiTamper.Normal.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ static unsafe void Initialize() {
5454
uint w = 0x40;
5555
VirtualProtect((IntPtr)e, l << 2, w, out w);
5656

57+
if (w == 0x40)
58+
return;
59+
5760
uint h = 0;
5861
for (uint i = 0; i < l; i++) {
5962
*e ^= y[h & 0xf];

0 commit comments

Comments
 (0)