about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2015-07-02 16:13:56 +0200
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2015-07-02 16:14:20 +0200
commitd85f4a5700b6bafa69c7cc98039f1c98cf9201f0 (patch)
treea6c0642cb19470ebe3fce8952c2681c96e8b412d
parent6e9e58aef34a466753ca66eeb4058ce6652d98bd (diff)
downloadmiasm-d85f4a5700b6bafa69c7cc98039f1c98cf9201f0.tar.gz
miasm-d85f4a5700b6bafa69c7cc98039f1c98cf9201f0.zip
Win_api: fix tipo
-rw-r--r--miasm2/os_dep/win_api_x86_32.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/miasm2/os_dep/win_api_x86_32.py b/miasm2/os_dep/win_api_x86_32.py
index 5c0f3b8e..fecc8a29 100644
--- a/miasm2/os_dep/win_api_x86_32.py
+++ b/miasm2/os_dep/win_api_x86_32.py
@@ -2214,7 +2214,7 @@ def kernel32_MapViewOfFile(jitter):
     hfile_o = winobjs.handle_pool[hmap.info]
     fd = hfile_o.info
     fd.seek((args.dwfileoffsethigh << 32) | args.dwfileoffsetlow)
-    data = fd.read(args.length) if args.length else args.read()
+    data = fd.read(args.length) if args.length else fd.read()
     length = len(data)
 
     log.debug('mapp total: %x', len(data))