mirror of https://github.com/python/cpython
GetVolumePathNameW: downcast bufsize to DWORD
This commit is contained in:
parent
b08ff7dcb4
commit
85ba92a0b8
|
@ -4054,7 +4054,8 @@ posix__getvolumepathname(PyObject *self, PyObject *args)
|
||||||
return PyErr_NoMemory();
|
return PyErr_NoMemory();
|
||||||
|
|
||||||
Py_BEGIN_ALLOW_THREADS
|
Py_BEGIN_ALLOW_THREADS
|
||||||
ret = GetVolumePathNameW(path, mountpath, bufsize);
|
ret = GetVolumePathNameW(path, mountpath,
|
||||||
|
Py_SAFE_DOWNCAST(bufsize, size_t, DWORD));
|
||||||
Py_END_ALLOW_THREADS
|
Py_END_ALLOW_THREADS
|
||||||
|
|
||||||
if (!ret) {
|
if (!ret) {
|
||||||
|
|
Loading…
Reference in New Issue