Kaydet (Commit) 85ba92a0 authored tarafından Christian Heimes's avatar Christian Heimes

GetVolumePathNameW: downcast bufsize to DWORD

üst b08ff7dc
......@@ -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