From 3ceb573a720b8b9c9148135c64ba966fa37e3a92 Mon Sep 17 00:00:00 2001 From: Steve Dower Date: Fri, 9 Sep 2016 15:53:58 -0700 Subject: Fix call to PathCombineW. --- PC/getpathp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PC/getpathp.c b/PC/getpathp.c index 7d53fbd..4d71fe7 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()"); } } -- cgit v0.12