mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
Lurking bug found by patch for 531291: FSSpecs should be passed to
Py_BuildValue by address, not by value. 2.2.1 candidate.
This commit is contained in:
parent
cb6cf13261
commit
ca9a4a6e17
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue