Show More
@@ -525,9 +525,9 b' static PyObject *isgui(PyObject *self)' | |||||
525 |
|
525 | |||
526 | if (dict != NULL) { |
|
526 | if (dict != NULL) { | |
527 | CFRelease(dict); |
|
527 | CFRelease(dict); | |
528 | return Py_True; |
|
528 | Py_RETURN_TRUE; | |
529 | } else { |
|
529 | } else { | |
530 | return Py_False; |
|
530 | Py_RETURN_FALSE; | |
531 | } |
|
531 | } | |
532 | } |
|
532 | } | |
533 | #endif |
|
533 | #endif |
@@ -138,8 +138,11 b' class _CONSOLE_SCREEN_BUFFER_INFO(ctypes' | |||||
138 | _kernel32.CloseHandle.argtypes = [_HANDLE] |
|
138 | _kernel32.CloseHandle.argtypes = [_HANDLE] | |
139 | _kernel32.CloseHandle.restype = _BOOL |
|
139 | _kernel32.CloseHandle.restype = _BOOL | |
140 |
|
140 | |||
141 | _kernel32.CreateHardLinkA.argtypes = [_LPCSTR, _LPCSTR, ctypes.c_void_p] |
|
141 | try: | |
142 |
_kernel32.CreateHardLinkA. |
|
142 | _kernel32.CreateHardLinkA.argtypes = [_LPCSTR, _LPCSTR, ctypes.c_void_p] | |
|
143 | _kernel32.CreateHardLinkA.restype = _BOOL | |||
|
144 | except AttributeError: | |||
|
145 | pass | |||
143 |
|
146 | |||
144 | _kernel32.SetFileAttributesA.argtypes = [_LPCSTR, _DWORD] |
|
147 | _kernel32.SetFileAttributesA.argtypes = [_LPCSTR, _DWORD] | |
145 | _kernel32.SetFileAttributesA.restype = _BOOL |
|
148 | _kernel32.SetFileAttributesA.restype = _BOOL |
General Comments 0
You need to be logged in to leave comments.
Login now