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

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):
pass
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)()
asn1_instance.SetData(value)
......
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