Nasty error: handle parameters are passed by _address_ to SetControlData.
This commit is contained in:
parent
1c252bfe39
commit
f7ac1d32f0
|
@ -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);
|
||||
|
|
|
@ -350,7 +350,7 @@ _err = SetControlData(_self->ob_itself,
|
|||
inPart,
|
||||
inTagName,
|
||||
sizeof(buffer),
|
||||
(Ptr)buffer);
|
||||
(Ptr)&buffer);
|
||||
|
||||
if (_err != noErr)
|
||||
return PyMac_Error(_err);
|
||||
|
|
Loading…
Reference in New Issue