diff options
-rw-r--r-- | Modules/posixmodule.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 09705c8..26fc25f 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -8163,13 +8163,13 @@ win32__getdiskusage(PyObject *self, PyObject *args) { BOOL retval; ULARGE_INTEGER _, total, free; - LPCTSTR path; + const wchar_t *path; - if (! PyArg_ParseTuple(args, "s", &path)) + if (! PyArg_ParseTuple(args, "u", &path)) return NULL; Py_BEGIN_ALLOW_THREADS - retval = GetDiskFreeSpaceEx(path, &_, &total, &free); + retval = GetDiskFreeSpaceExW(path, &_, &total, &free); Py_END_ALLOW_THREADS if (retval == 0) return PyErr_SetFromWindowsErr(0); |