fix compile issue on windows. path is now a struct ptr
This commit is contained in:
parent
e55013febe
commit
ebe83f9875
|
@ -2651,10 +2651,10 @@ os_access_impl(PyObject *self, path_t *path, int mode, int dir_fd, int effective
|
||||||
|
|
||||||
#ifdef MS_WINDOWS
|
#ifdef MS_WINDOWS
|
||||||
Py_BEGIN_ALLOW_THREADS
|
Py_BEGIN_ALLOW_THREADS
|
||||||
if (path.wide != NULL)
|
if (path->wide != NULL)
|
||||||
attr = GetFileAttributesW(path.wide);
|
attr = GetFileAttributesW(path->wide);
|
||||||
else
|
else
|
||||||
attr = GetFileAttributesA(path.narrow);
|
attr = GetFileAttributesA(path->narrow);
|
||||||
Py_END_ALLOW_THREADS
|
Py_END_ALLOW_THREADS
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue