diff options
author | Armin Rigo <arigo@tunes.org> | 2012-09-18 11:13:07 +0200 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2012-09-18 11:13:07 +0200 |
commit | 3c363d642f266cfa1636f8510d51774205ac0788 (patch) | |
tree | da58f2025348522f8791b5ac4b02d444ff01591d /cffi/backend_ctypes.py | |
parent | febc48a10c8e8a178c048ec146aa85cd80ab4251 (diff) | |
download | cffi-3c363d642f266cfa1636f8510d51774205ac0788.tar.gz |
Fix in backend_ctypes.
Diffstat (limited to 'cffi/backend_ctypes.py')
-rw-r--r-- | cffi/backend_ctypes.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cffi/backend_ctypes.py b/cffi/backend_ctypes.py index 2298db9..3f54869 100644 --- a/cffi/backend_ctypes.py +++ b/cffi/backend_ctypes.py @@ -838,11 +838,10 @@ class CTypesBackend(object): args2.append(BArg._from_ctypes(arg)) try: res2 = init(*args2) + res2 = BResult._to_ctypes(res2) except: traceback.print_exc() res2 = error - else: - res2 = BResult._to_ctypes(res2) if issubclass(BResult, CTypesGenericPtr): if res2: res2 = ctypes.cast(res2, ctypes.c_void_p).value |