parent
1bd9217540
commit
e736ba2f2f
@ -89,7 +89,10 @@ except AttributeError:
|
|||||||
# 2. libffi masks the problem because after making the call it doesn't
|
# 2. libffi masks the problem because after making the call it doesn't
|
||||||
# touch anything through esp and epilogue code restores a correct
|
# touch anything through esp and epilogue code restores a correct
|
||||||
# esp from ebp afterwards.
|
# esp from ebp afterwards.
|
||||||
|
try:
|
||||||
kernel32 = ctypes.cdll.kernel32
|
kernel32 = ctypes.cdll.kernel32
|
||||||
|
except OSError: # 'No such file or directory'
|
||||||
|
kernel32 = ctypes.cdll.LoadLibrary('kernel32.dll')
|
||||||
else:
|
else:
|
||||||
kernel32 = ctypes.windll.kernel32
|
kernel32 = ctypes.windll.kernel32
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user