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