Commit 7d4e4124 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Try to deal with ctypes on 64 bits platforms

parent 622c73c8
......@@ -499,7 +499,13 @@ class sdlHandler(QObject):
typename = sort.ReferencedTypeName.replace('-', '_')
# ctypes hint: don't use c_char_p except for text strings
get_value = getattr(self.dll, "{}_value".format(var))
get_value.restype = ctypes.c_void_p
class ReturnPointer (ctypes.Structure):
ReturnHandle = ctypes.POINTER(ReturnPointer)
get_value.restype = ReturnHandle
# Apparently c_void_p is not 64-bits friendly...
#get_value.restype = ctypes.c_void_p
value = get_value()
asn1_instance = getattr(ASN1, typename)()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment