GetVolumePathNameW: downcast bufsize to DWORD

This commit is contained in:
Christian Heimes 2013-11-18 10:30:42 +01:00
parent b08ff7dcb4
commit 85ba92a0b8
1 changed files with 2 additions and 1 deletions

View File

@ -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) {