mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
fix compile issue on windows. path is now a struct ptr
This commit is contained in:
parent
e55013febe
commit
ebe83f9875
1 changed files with 3 additions and 3 deletions
|
@ -2651,10 +2651,10 @@ os_access_impl(PyObject *self, path_t *path, int mode, int dir_fd, int effective
|
|||
|
||||
#ifdef MS_WINDOWS
|
||||
Py_BEGIN_ALLOW_THREADS
|
||||
if (path.wide != NULL)
|
||||
attr = GetFileAttributesW(path.wide);
|
||||
if (path->wide != NULL)
|
||||
attr = GetFileAttributesW(path->wide);
|
||||
else
|
||||
attr = GetFileAttributesA(path.narrow);
|
||||
attr = GetFileAttributesA(path->narrow);
|
||||
Py_END_ALLOW_THREADS
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue