idc.py: Fixed SEARCH_UP in FindBinary()

This commit is contained in:
gergely.erdelyi 2008-06-15 16:22:37 +00:00
parent 754622e1c4
commit 375606cefd

View File

@ -2094,7 +2094,8 @@ def FindBinary(ea, flag, str, radix=16):
@note: Example: "41 42" - find 2 bytes 41h,42h (radix is 16) @note: Example: "41 42" - find 2 bytes 41h,42h (radix is 16)
""" """
return idaapi.find_binary(ea, BADADDR, str, radix, flag) endea = flag & 1 and idaapi.cvar.inf.maxEA or idaapi.cvar.inf.minEA
return idaapi.find_binary(ea, endea, str, radix, flag)
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------