fix compile issue on windows. path is now a struct ptr

This commit is contained in:
Christian Heimes 2013-10-19 22:36:17 +02:00
parent e55013febe
commit ebe83f9875
1 changed files with 3 additions and 3 deletions

View File

@ -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
/*