fix winpaths for py3

This commit is contained in:
Damien Elmes 2018-08-08 23:31:18 +10:00
parent 8470e072b6
commit 91983ce21f

View File

@ -92,7 +92,7 @@ _SHGetFolderPath.argtypes = [wintypes.HWND,
_SHGetFolderPath.restype = _err_unless_zero _SHGetFolderPath.restype = _err_unless_zero
def _get_path_buf(csidl): def _get_path_buf(csidl):
path_buf = wintypes.create_unicode_buffer(wintypes.MAX_PATH) path_buf = ctypes.create_unicode_buffer(wintypes.MAX_PATH)
result = _SHGetFolderPath(0, csidl, 0, 0, path_buf) result = _SHGetFolderPath(0, csidl, 0, 0, path_buf)
return path_buf.value return path_buf.value