Skip to content

Commit

Permalink
Python complaining
Browse files Browse the repository at this point in the history
  • Loading branch information
AeonLucid committed Aug 22, 2020
1 parent 8b82c9f commit 143f9d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion androidemu/internal/modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def load_module(self, filename):

for segment in load_segments:
prot = get_segment_protection(segment.header.p_flags)
prot = prot if prot is not 0 else UC_PROT_ALL
prot = prot if prot != 0 else UC_PROT_ALL

self.emu.memory.mem_map(load_base + segment.header.p_vaddr, segment.header.p_memsz, prot)
self.emu.memory.mem_write(load_base + segment.header.p_vaddr, segment.data())
Expand Down

0 comments on commit 143f9d2

Please sign in to comment.