Files
MINGW-packages/mingw-w64-python3/1000-fix-building-posixmodule.patch
2014-03-18 00:25:28 +04:00

17 lines
691 B
Diff

diff -Naur a/Modules/posixmodule.c b/Modules/posixmodule.c
--- a/Modules/posixmodule.c 2014-03-18 00:07:23.094200000 +0400
+++ b/Modules/posixmodule.c 2014-03-18 00:08:19.098200000 +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);