From 6139c1bfa305f35a51c06685814c840d09bda7b8 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 9 Nov 2011 22:14:14 +0100 Subject: [PATCH] Issue #12442: nt._getdiskusage() is now using the Windows Unicode API --- Modules/posixmodule.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 09705c806a35..26fc25f5b9df 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); -- 2.47.3