diff options
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r-- | Modules/posixmodule.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 7e6bdc8..c51c849 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -4054,7 +4054,8 @@ posix__getvolumepathname(PyObject *self, PyObject *args) return PyErr_NoMemory(); Py_BEGIN_ALLOW_THREADS - ret = GetVolumePathNameW(path, mountpath, bufsize); + ret = GetVolumePathNameW(path, mountpath, + Py_SAFE_DOWNCAST(bufsize, size_t, DWORD)); Py_END_ALLOW_THREADS if (!ret) { |