Commit 3e05bb7c authored by Jack Jansen's avatar Jack Jansen

Lurking bug found by patch for 531291: FSSpecs should be passed to

Py_BuildValue by address, not by value.

2.2.1 candidate.
parent aa476a5e
......@@ -2791,7 +2791,7 @@ static PyObject *CFURLRefObj_CFURLGetFSRef(CFURLRefObject *_self, PyObject *_arg
&fsRef);
_res = Py_BuildValue("lO&",
_rv,
PyMac_BuildFSRef, fsRef);
PyMac_BuildFSRef, &fsRef);
return _res;
}
......
......@@ -1172,7 +1172,7 @@ static PyObject *WinObj_GetWindowProxyFSSpec(WindowObject *_self, PyObject *_arg
&outFile);
if (_err != noErr) return PyMac_Error(_err);
_res = Py_BuildValue("O&",
PyMac_BuildFSSpec, outFile);
PyMac_BuildFSSpec, &outFile);
return _res;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment