Always rename P/Invoke methods
This commit is contained in:
parent
d913c61df6
commit
af0ff59794
|
@ -349,7 +349,8 @@ namespace de4dot.renamer {
|
||||||
info.renamed = true;
|
info.renamed = true;
|
||||||
var checker = NameChecker;
|
var checker = NameChecker;
|
||||||
|
|
||||||
if (!NameChecker.isValidMethodName(info.oldName)) {
|
// PInvoke methods' EntryPoint is always valid. It has to, so always rename.
|
||||||
|
if (!NameChecker.isValidMethodName(info.oldName) || methodDef.MethodDefinition.PInvokeInfo != null) {
|
||||||
INameCreator nameCreator = null;
|
INameCreator nameCreator = null;
|
||||||
string newName = info.suggestedName;
|
string newName = info.suggestedName;
|
||||||
if (methodDef.MethodDefinition.PInvokeInfo != null)
|
if (methodDef.MethodDefinition.PInvokeInfo != null)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user