[issue37074] os.stat() does not work for NUL and CON
Eryk Sun
report at bugs.python.org
Tue May 28 10:31:50 EDT 2019
Eryk Sun <eryksun at gmail.com> added the comment:
> GetFullPathNameW(path, sizeof(fullPath),
That should be sizeof(fullPath) / sizeof(WCHAR), or use Py_ARRAY_LENGTH, or just hard code 8. That's probably not the only mistake. But this is just an example to discuss the details and alternatives.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37074>
_______________________________________
More information about the Python-bugs-list
mailing list