diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-11-09 21:14:14 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-11-09 21:14:14 (GMT) |
commit | 6139c1bfa305f35a51c06685814c840d09bda7b8 (patch) | |
tree | fd5ce7d7633ef26f12993a87ba8550880b0e2b64 /Modules | |
parent | fd9cd24a052e6cbaa456d69ca744387888920dad (diff) | |
download | cpython-6139c1bfa305f35a51c06685814c840d09bda7b8.zip cpython-6139c1bfa305f35a51c06685814c840d09bda7b8.tar.gz cpython-6139c1bfa305f35a51c06685814c840d09bda7b8.tar.bz2 |
Issue #12442: nt._getdiskusage() is now using the Windows Unicode API
Diffstat (limited to 'Modules')
-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); |