fixed example

This commit is contained in:
Elias Bachaalany
2017-06-19 08:36:46 -07:00
parent 21f1e96b52
commit b6f9477e02
+8 -1
View File
@@ -15,7 +15,14 @@ def main():
seg = getseg(ea)
# Loop from segment start to end
func = get_next_func(seg.startEA)
func_ea = seg.startEA
# Get a function at the start of the segment (if any)
func = get_func(func_ea)
if func is None:
# No function there, try to get the next one
func = get_next_func(func_ea)
seg_end = seg.endEA
while func is not None and func.startEA < seg_end:
funcea = func.startEA