fix types

This commit is contained in:
jan 2016-07-12 00:54:00 -07:00
parent 1b7f0394f8
commit 53a366e526

View File

@ -58,7 +58,7 @@ def main(in_file, out_file, dll_path=None):
def open_file(dll, filename): def open_file(dll, filename):
handle = ctypes.pointer(ctypes.c_byte()) handle = ctypes.pointer(ctypes.c_byte())
res = dll.AAXOpenFileWinW(handle, filename) res = dll.AAXOpenFileWinW(byref(handle), filename)
if res != 0: if res != 0:
raise Exception('AAXOpenFileWinW: {}'.format(res)) raise Exception('AAXOpenFileWinW: {}'.format(res))