diff options
author | Christian Heimes <christian@cheimes.de> | 2013-11-18 09:30:42 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2013-11-18 09:30:42 (GMT) |
commit | 85ba92a0b80a9e9457a6c637576aa0b35588a566 (patch) | |
tree | 0491ae907ce5cb2a13f72ef5cc4b7cda3eb220c3 /Modules | |
parent | b08ff7dcb4725e9659e3234836ba5e60b191815e (diff) | |
download | cpython-85ba92a0b80a9e9457a6c637576aa0b35588a566.zip cpython-85ba92a0b80a9e9457a6c637576aa0b35588a566.tar.gz cpython-85ba92a0b80a9e9457a6c637576aa0b35588a566.tar.bz2 |
GetVolumePathNameW: downcast bufsize to DWORD
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/posixmodule.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 7e6bdc8..c51c849 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -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) { |