Files
MINGW-packages/mingw-w64-python3/1000-fix-building-posixmodule.patch
2014-05-20 01:12:05 +04:00

17 lines
691 B
Diff

diff -Naur a/Modules/posixmodule.c b/Modules/posixmodule.c
--- a/Modules/posixmodule.c 2014-05-20 00:56:10.256800000 +0400
+++ b/Modules/posixmodule.c 2014-05-20 00:57:10.316800000 +0400
@@ -1444,10 +1444,10 @@
if(!SetCurrentDirectoryW(path))
return FALSE;
- result = GetCurrentDirectoryW(Py_ARRAY_LENGTH(new_path), new_path);
+ result = GetCurrentDirectoryW(Py_ARRAY_LENGTH(_new_path), new_path);
if (!result)
return FALSE;
- if (result > Py_ARRAY_LENGTH(new_path)) {
+ if (result > Py_ARRAY_LENGTH(_new_path)) {
new_path = PyMem_RawMalloc(result * sizeof(wchar_t));
if (!new_path) {
SetLastError(ERROR_OUTOFMEMORY);