[Python-checkins] cpython: Fix call to PathCombineW.

steve.dower python-checkins at python.org
Fri Sep 9 18:54:06 EDT 2016


https://hg.python.org/cpython/rev/bd980225bacc
changeset: 103494:bd980225bacc
user: Steve Dower <steve.dower at microsoft.com>
date: Fri Sep 09 15:53:58 2016 -0700
summary:
 Fix call to PathCombineW.
files:
 PC/getpathp.c | 2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/PC/getpathp.c b/PC/getpathp.c
--- a/PC/getpathp.c
+++ b/PC/getpathp.c
@@ -197,7 +197,7 @@
 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()");
 }
 }
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /