mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
fix winpaths for py3
This commit is contained in:
parent
8470e072b6
commit
91983ce21f
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ _SHGetFolderPath.argtypes = [wintypes.HWND,
|
|||
_SHGetFolderPath.restype = _err_unless_zero
|
||||
|
||||
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)
|
||||
return path_buf.value
|
||||
|
||||
|
|
Loading…
Reference in a new issue