Commit 41c8b377 authored by Victor Stinner's avatar Victor Stinner

copy_absolute() raises a fatal error on _Py_wgetcwd() failure

parent 015f4d87
No related merge requests found
......@@ -236,7 +236,8 @@ copy_absolute(wchar_t *path, wchar_t *p)
if (p[0] == SEP)
wcscpy(path, p);
else {
_Py_wgetcwd(path, MAXPATHLEN);
if (!_Py_wgetcwd(path, MAXPATHLEN))
Py_FatalError("unable to get the current directory");
if (p[0] == '.' && p[1] == SEP)
p += 2;
joinpath(path, p);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment