Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f7ac1d3

Browse files
committed
Nasty error: handle parameters are passed by _address_ to SetControlData.
1 parent 1c252bf commit f7ac1d3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Mac/Modules/ctl/Ctlmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1203,7 +1203,7 @@ static PyObject *CtlObj_SetControlDataHandle(_self, _args)
12031203
inPart,
12041204
inTagName,
12051205
sizeof(buffer),
1206-
(Ptr)buffer);
1206+
(Ptr)&buffer);
12071207

12081208
if (_err != noErr)
12091209
return PyMac_Error(_err);

Mac/Modules/ctl/ctlsupport.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ def outputCleanupStructMembers(self):
350350
inPart,
351351
inTagName,
352352
sizeof(buffer),
353-
(Ptr)buffer);
353+
(Ptr)&buffer);
354354
355355
if (_err != noErr)
356356
return PyMac_Error(_err);

0 commit comments

Comments
 (0)