Commit 3dbe5d0b authored by Christian Heimes's avatar Christian Heimes

GetVolumePathNameW: downcast bufsize to DWORD

parent af0df907
......@@ -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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment