##// END OF EJS Templates
win32: quietly ignore missing CreateHardLinkA for Wine
Matt Mackall -
r15095:ec222a29 stable
parent child Browse files
Show More
@@ -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.restype = _BOOL
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