Ignore req/opt modifiers

This commit is contained in:
de4dot 2012-11-14 21:44:57 +01:00
parent 475c597a60
commit 9e708ed4fd
4 changed files with 4 additions and 4 deletions

View File

@ -114,7 +114,7 @@ namespace de4dot.blocks.cflow {
}
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;
if (isValueType(newType) || isValueType(origType))
return false;

View File

@ -234,7 +234,7 @@ namespace de4dot.code.deobfuscators.Babel_NET {
}
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;
if (isValueType(newType) || isValueType(origType))
return false;

View File

@ -35,7 +35,7 @@ namespace de4dot.code.deobfuscators.Spices_Net {
}
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;
if (paramIndex == -1) {
if (isValueType(newType) || isValueType(origType))

2
dot10

@ -1 +1 @@
Subproject commit 524454903a493b9bbbd29a95fa6c68e7536aa57a
Subproject commit 8de4c07f8f94236474b601016a66e7752a6fc7bd