From 85ba92a0b80a9e9457a6c637576aa0b35588a566 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Mon, 18 Nov 2013 10:30:42 +0100 Subject: GetVolumePathNameW: downcast bufsize to DWORD --- Modules/posixmodule.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- cgit v0.12