From f7ac1d32f04cdda7d8b6200daa8eedf89aba1290 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Wed, 29 Dec 1999 12:37:22 +0000 Subject: [PATCH] Nasty error: handle parameters are passed by _address_ to SetControlData. --- Mac/Modules/ctl/Ctlmodule.c | 2 +- Mac/Modules/ctl/ctlsupport.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Mac/Modules/ctl/Ctlmodule.c b/Mac/Modules/ctl/Ctlmodule.c index 461d9459965..9b39f1a1eff 100644 --- a/Mac/Modules/ctl/Ctlmodule.c +++ b/Mac/Modules/ctl/Ctlmodule.c @@ -1203,7 +1203,7 @@ static PyObject *CtlObj_SetControlDataHandle(_self, _args) inPart, inTagName, sizeof(buffer), - (Ptr)buffer); + (Ptr)&buffer); if (_err != noErr) return PyMac_Error(_err); diff --git a/Mac/Modules/ctl/ctlsupport.py b/Mac/Modules/ctl/ctlsupport.py index 9829dcd6e0e..5104d058ef2 100644 --- a/Mac/Modules/ctl/ctlsupport.py +++ b/Mac/Modules/ctl/ctlsupport.py @@ -350,7 +350,7 @@ _err = SetControlData(_self->ob_itself, inPart, inTagName, sizeof(buffer), - (Ptr)buffer); + (Ptr)&buffer); if (_err != noErr) return PyMac_Error(_err);