From: Jack Jansen Date: Mon, 18 Mar 2002 15:41:32 +0000 (+0000) Subject: Lurking bug found by patch for 531291: FSSpecs should be passed to X-Git-Tag: v2.3c1~6450 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ca9a4a6e175803b212bbb024fb54ef6d560c27d8;p=python Lurking bug found by patch for 531291: FSSpecs should be passed to Py_BuildValue by address, not by value. 2.2.1 candidate. --- diff --git a/Mac/Modules/cf/_CFmodule.c b/Mac/Modules/cf/_CFmodule.c index a47fe85fcc..d69fce7ba0 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 6db74a91b1..80e4040894 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; }