Make sure it is static

This commit is contained in:
de4dot 2012-01-24 04:24:44 +01:00
parent 6ceea06f5b
commit ed00c5f2c5

View File

@ -101,7 +101,7 @@ namespace de4dot.code.deobfuscators.DeepSea {
}
bool checkHandlerMethod(MethodDefinition handler) {
if (handler == null || handler.Body == null)
if (handler == null || handler.Body == null || !handler.IsStatic)
return false;
if (!DotNetUtils.isMethod(handler, "System.Reflection.Assembly", "(System.Object,System.ResolveEventArgs)"))
return false;