summaryrefslogtreecommitdiffstats
path: root/Mac/Modules
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1999-12-29 12:37:22 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1999-12-29 12:37:22 (GMT)
commitf7ac1d32f04cdda7d8b6200daa8eedf89aba1290 (patch)
tree4772e041df3d266bc1dbac8a7f26f52166fd396f /Mac/Modules
parent1c252bfe39b300532c87b8014d65dae00330b66b (diff)
downloadcpython-f7ac1d32f04cdda7d8b6200daa8eedf89aba1290.zip
cpython-f7ac1d32f04cdda7d8b6200daa8eedf89aba1290.tar.gz
cpython-f7ac1d32f04cdda7d8b6200daa8eedf89aba1290.tar.bz2
Nasty error: handle parameters are passed by _address_ to SetControlData.
Diffstat (limited to 'Mac/Modules')
-rw-r--r--Mac/Modules/ctl/Ctlmodule.c2
-rw-r--r--Mac/Modules/ctl/ctlsupport.py2
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);