mirror of
https://github.com/python/cpython.git
synced 2025-09-09 02:11:51 +00:00
GetVolumePathNameW: downcast bufsize to DWORD
This commit is contained in:
parent
b08ff7dcb4
commit
85ba92a0b8
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue