From 919b3d99877474a922686153bdd03b6b6a59203f Mon Sep 17 00:00:00 2001 From: "gergely.erdelyi" Date: Sun, 2 Nov 2008 08:37:57 +0000 Subject: [PATCH] idautils.py: Replaced GetInputFileMD5 with a call to the IDC version --- python/idautils.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/python/idautils.py b/python/idautils.py index f8966ec..9ad7721 100644 --- a/python/idautils.py +++ b/python/idautils.py @@ -12,6 +12,7 @@ idautils.py - High level utility functions for IDA """ import idaapi +import idc def refs(ea, funcfirst, funcnext): """ @@ -341,12 +342,4 @@ def GetInputFileMD5(): @return: MD5 string or None on error """ - ua=idaapi.uchar_array(16) - if idaapi.retrieve_input_file_md5(ua.cast()): - md5str="" - for i in range(16): - md5str += "%02x" % ua[i] - return md5str - else: - return None - + return idc.GetInputMD5()