Nasty error: handle parameters are passed by _address_ to SetControlData.

This commit is contained in:
Jack Jansen 1999-12-29 12:37:22 +00:00
parent 1c252bfe39
commit f7ac1d32f0
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -350,7 +350,7 @@ _err = SetControlData(_self->ob_itself,
inPart,
inTagName,
sizeof(buffer),
(Ptr)buffer);
(Ptr)&buffer);
if (_err != noErr)
return PyMac_Error(_err);