Ignore req/opt modifiers
This commit is contained in:
parent
475c597a60
commit
9e708ed4fd
|
@ -114,7 +114,7 @@ namespace de4dot.blocks.cflow {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override bool isCompatibleType(int paramIndex, IType origType, IType newType) {
|
protected override bool isCompatibleType(int paramIndex, IType origType, IType newType) {
|
||||||
if (new SigComparer().Equals(origType, newType))
|
if (new SigComparer(SigComparerOptions.IgnoreModifiers).Equals(origType, newType))
|
||||||
return true;
|
return true;
|
||||||
if (isValueType(newType) || isValueType(origType))
|
if (isValueType(newType) || isValueType(origType))
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -234,7 +234,7 @@ namespace de4dot.code.deobfuscators.Babel_NET {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override bool isCompatibleType(int paramIndex, IType origType, IType newType) {
|
protected override bool isCompatibleType(int paramIndex, IType origType, IType newType) {
|
||||||
if (new SigComparer().Equals(origType, newType))
|
if (new SigComparer(SigComparerOptions.IgnoreModifiers).Equals(origType, newType))
|
||||||
return true;
|
return true;
|
||||||
if (isValueType(newType) || isValueType(origType))
|
if (isValueType(newType) || isValueType(origType))
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -35,7 +35,7 @@ namespace de4dot.code.deobfuscators.Spices_Net {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override bool isCompatibleType(int paramIndex, IType origType, IType newType) {
|
protected override bool isCompatibleType(int paramIndex, IType origType, IType newType) {
|
||||||
if (new SigComparer().Equals(origType, newType))
|
if (new SigComparer(SigComparerOptions.IgnoreModifiers).Equals(origType, newType))
|
||||||
return true;
|
return true;
|
||||||
if (paramIndex == -1) {
|
if (paramIndex == -1) {
|
||||||
if (isValueType(newType) || isValueType(origType))
|
if (isValueType(newType) || isValueType(origType))
|
||||||
|
|
2
dot10
2
dot10
|
@ -1 +1 @@
|
||||||
Subproject commit 524454903a493b9bbbd29a95fa6c68e7536aa57a
|
Subproject commit 8de4c07f8f94236474b601016a66e7752a6fc7bd
|
Loading…
Reference in New Issue
Block a user