]> granicus.if.org Git - python/commitdiff
Lurking bug found by patch for 531291: FSSpecs should be passed to
authorJack Jansen <jack.jansen@cwi.nl>
Mon, 18 Mar 2002 15:41:32 +0000 (15:41 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Mon, 18 Mar 2002 15:41:32 +0000 (15:41 +0000)
Py_BuildValue by address, not by value.

2.2.1 candidate.

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;
 }