Fix call to PathCombineW.

This commit is contained in:
Steve Dower 2016-09-09 15:53:58 -07:00
parent c307672395
commit 3ceb573a72

View file

@ -197,7 +197,7 @@ join(wchar_t *buffer, const wchar_t *stuff)
if (FAILED(_PathCchCombineEx(buffer, MAXPATHLEN+1, buffer, stuff, 0)))
Py_FatalError("buffer overflow in getpathp.c's join()");
} else {
if (!PathCombineW(buffer, NULL, stuff))
if (!PathCombineW(buffer, buffer, stuff))
Py_FatalError("buffer overflow in getpathp.c's join()");
}
}