From: Steve Dower Date: Fri, 9 Sep 2016 22:53:58 +0000 (-0700) Subject: Fix call to PathCombineW. X-Git-Tag: v3.6.0b1~150 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3ceb573a720b8b9c9148135c64ba966fa37e3a92;p=python Fix call to PathCombineW. --- diff --git a/PC/getpathp.c b/PC/getpathp.c index 7d53fbdf67..4d71fe7ddf 100644 --- a/PC/getpathp.c +++ b/PC/getpathp.c @@ -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()"); } }