Skip to content

Commit

Permalink
fix some errors (AlessandroZ#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlessandroZ committed Aug 10, 2017
1 parent c255009 commit 25cf42a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
7 changes: 4 additions & 3 deletions Linux/lazagne/config/write_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,10 @@ def parseJsonResultToBuffer(jsonString, color=False):
reset = ''
title = ''
if color:
green = Fore.GREEN
title = Style.BRIGHT + Fore.WHITE
reset = Style.RESET_ALL
b = bcolors()
green = b.OK
title = b.TITLE
reset = b.ENDC

buffer = ''
try:
Expand Down
5 changes: 4 additions & 1 deletion Windows/lazagne/softwares/windows/creddump7/object.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,13 @@ def get_obj_offset(types, member_list):
current_type = member_list.pop()

offset = 0
current_member = 0
member_dict = None

while (len(member_list) > 0):
if current_type == 'array':
current_type = member_dict[current_member][1][2][0]
if member_dict:
current_type = member_dict[current_member][1][2][0]
if current_type in builtin_types:
current_type_size = builtin_size(current_type)
else:
Expand Down

0 comments on commit 25cf42a

Please sign in to comment.