Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47fcb5b commit e406ef4Copy full SHA for e406ef4
1 file changed
Modules/getpath.c
@@ -416,7 +416,8 @@ search_for_exec_prefix(wchar_t *argv0_path, wchar_t *home)
416
fclose(f);
417
decoded = PyUnicode_DecodeUTF8(buf, n, "surrogateescape");
418
if (decoded != NULL) {
419
- n = PyUnicode_AsWideChar(decoded, rel_builddir_path, MAXPATHLEN);
+ n = PyUnicode_AsWideChar((PyUnicodeObject*)decoded,
420
+ rel_builddir_path, MAXPATHLEN);
421
Py_DECREF(decoded);
422
if (n >= 0) {
423
rel_builddir_path[n] = L'\0';
0 commit comments