about summary refs log tree commit diff stats
path: root/example
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2014-09-19 10:43:32 +0200
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2014-09-19 10:43:32 +0200
commit3674bace8dbc185aefca1b4fa85983adfe73956b (patch)
tree3868dca81348cc0ef76b024d2d151293e9a911d9 /example
parent3f11ce8a64d4dcc37587c4750ae5381a808695ef (diff)
downloadmiasm-3674bace8dbc185aefca1b4fa85983adfe73956b.tar.gz
miasm-3674bace8dbc185aefca1b4fa85983adfe73956b.zip
merge
Diffstat (limited to 'example')
-rw-r--r--example/unpack_upx.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/example/unpack_upx.py b/example/unpack_upx.py
index 05e3f4b7..6805c82d 100644
--- a/example/unpack_upx.py
+++ b/example/unpack_upx.py
@@ -96,7 +96,7 @@ if args.graph is True:
 # User defined methods
 
 
-def mygetproc(myjit):
+def kernel32_GetProcAddress(myjit):
     global libs
     ret_ad, args = myjit.func_args_stdcall(2)
     libbase, fname = args
@@ -113,10 +113,6 @@ def mygetproc(myjit):
     ad = libs.lib_get_add_func(libbase, fname, dst_ad)
     myjit.func_ret_stdcall(ret_ad, ad)
 
-
-def kernel32_GetProcAddress(myjit):
-    return mygetproc(myjit)
-
 # Set libs for win_32 api
 win_api_x86_32.winobjs.runtime_dll = libs
 if args.verbose is True: