Skip to content

Commit

Permalink
[pcustom] fixed typo in create_new_structure_template()
Browse files Browse the repository at this point in the history
  • Loading branch information
hugsy committed Jun 10, 2020
1 parent d09215a commit 0910560
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gef.py
Original file line number Diff line number Diff line change
Expand Up @@ -4760,7 +4760,7 @@ def create_or_edit_structure(self, mod_name, struct_name):
fullname = self.get_pcustom_filepath_for_structure(mod_name)
if not self.is_valid_struct(mod_name):
info("Creating '{:s}' from template".format(fullname))
self.create_new_structure_template(struct_name)
self.create_new_structure_template(struct_name, fullname)
else:
info("Editing '{:s}'".format(fullname))

Expand All @@ -4770,7 +4770,7 @@ def create_or_edit_structure(self, mod_name, struct_name):
return retcode


def create_new_structure_template(self, structname):
def create_new_structure_template(self, structname, fullname):
d = [
"from ctypes import *\n\n",
"class ", structname, "(Structure):\n",
Expand Down

0 comments on commit 0910560

Please sign in to comment.