diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2002-03-18 15:54:29 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2002-03-18 15:54:29 (GMT) |
commit | 868c4f09eca087131bfcbb98090eebfa91b96849 (patch) | |
tree | 60097560d2f68f2f069360f4ff1ea7341af92500 | |
parent | 45465f22957f5fa66270357da7b2a26dd8430579 (diff) | |
download | cpython-868c4f09eca087131bfcbb98090eebfa91b96849.zip cpython-868c4f09eca087131bfcbb98090eebfa91b96849.tar.gz cpython-868c4f09eca087131bfcbb98090eebfa91b96849.tar.bz2 |
Backport of _CFmodule.c 1.11 and _Winmodule 1.8:
Lurking bug found by patch for 531291: FSSpecs should be passed to
Py_BuildValue by address, not by value.
-rw-r--r-- | Mac/Modules/cf/_CFmodule.c | 2 | ||||
-rw-r--r-- | Mac/Modules/win/_Winmodule.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Mac/Modules/cf/_CFmodule.c b/Mac/Modules/cf/_CFmodule.c index a47fe85..d69fce7 100644 --- a/Mac/Modules/cf/_CFmodule.c +++ b/Mac/Modules/cf/_CFmodule.c @@ -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; } diff --git a/Mac/Modules/win/_Winmodule.c b/Mac/Modules/win/_Winmodule.c index 6db74a9..80e4040 100644 --- a/Mac/Modules/win/_Winmodule.c +++ b/Mac/Modules/win/_Winmodule.c @@ -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; } |