Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ebe83f9

Browse files
committed
fix compile issue on windows. path is now a struct ptr
1 parent e55013f commit ebe83f9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Modules/posixmodule.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2651,10 +2651,10 @@ os_access_impl(PyObject *self, path_t *path, int mode, int dir_fd, int effective
26512651

26522652
#ifdef MS_WINDOWS
26532653
Py_BEGIN_ALLOW_THREADS
2654-
if (path.wide != NULL)
2655-
attr = GetFileAttributesW(path.wide);
2654+
if (path->wide != NULL)
2655+
attr = GetFileAttributesW(path->wide);
26562656
else
2657-
attr = GetFileAttributesA(path.narrow);
2657+
attr = GetFileAttributesA(path->narrow);
26582658
Py_END_ALLOW_THREADS
26592659

26602660
/*

0 commit comments

Comments
 (0)