]> granicus.if.org Git - python/commitdiff
Fix call to PathCombineW.
authorSteve Dower <steve.dower@microsoft.com>
Fri, 9 Sep 2016 22:53:58 +0000 (15:53 -0700)
committerSteve Dower <steve.dower@microsoft.com>
Fri, 9 Sep 2016 22:53:58 +0000 (15:53 -0700)
PC/getpathp.c

index 7d53fbdf677f303dcd3db5e8f2affbb01a94ce2f..4d71fe7ddfc20354c8294886a24657bb3d75e7d6 100644 (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()");
     }
 }