diff options
-rw-r--r-- | Mac/Modules/ctl/Ctlmodule.c | 2 | ||||
-rw-r--r-- | 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 461d945..9b39f1a 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 9829dcd..5104d05 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); |