diff options
author | Steve Dower <steve.dower@microsoft.com> | 2016-09-09 15:53:58 -0700 |
---|---|---|
committer | Steve Dower <steve.dower@microsoft.com> | 2016-09-09 15:53:58 -0700 |
commit | 1cd96dc167be21f576fdd97db10431419dec5ca3 (patch) | |
tree | 3af63077f2c64803bbe7b118c9f856f8f3b343ff /PC/getpathp.c | |
parent | d54c7cc1fba316c7a4aa94bdedece5ef77eacb14 (diff) | |
download | cpython-1cd96dc167be21f576fdd97db10431419dec5ca3.tar.gz |
Fix call to PathCombineW.
Diffstat (limited to 'PC/getpathp.c')
-rw-r--r-- | PC/getpathp.c | 2 |
1 files changed, 1 insertions, 1 deletions
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()"); } } |