]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Backport of _CFmodule.c 1.11 and _Winmodule 1.8:
authorJack Jansen <jack.jansen@cwi.nl>
Mon, 18 Mar 2002 15:54:29 +0000 (15:54 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Mon, 18 Mar 2002 15:54:29 +0000 (15:54 +0000)
Lurking bug found by patch for 531291: FSSpecs should be passed to
Py_BuildValue by address, not by value.

Mac/Modules/cf/_CFmodule.c
Mac/Modules/win/_Winmodule.c

index a47fe85fcc5f95ccb4738dfa07200a381427733e..d69fce7ba03124554c9f7aea1c104866a57b1df3 100644 (file)
@@ -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;
 }
 
index 6db74a91b189eaf3ad782226a65db3ba416230e8..80e4040894488851cb2c63f36cda53ab2d99b174 100644 (file)
@@ -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;
 }