mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
fix bug in filterproc interface
This commit is contained in:
parent
f74c36c9dc
commit
0437e89041
4 changed files with 28 additions and 38 deletions
|
@ -40,7 +40,7 @@ static pascal Boolean Dlg_UnivFilterProc(DialogPtr dialog,
|
|||
if (callback == NULL)
|
||||
return 0; /* Default behavior */
|
||||
Dlg_FilterProc_callback = NULL; /* We'll restore it when call successful */
|
||||
args = Py_BuildValue("O&s#", DlgObj_New, dialog, event, (int)sizeof(EventRecord));
|
||||
args = Py_BuildValue("O&O&", WinObj_WhichWindow, dialog, PyMac_BuildEventRecord, event);
|
||||
if (args == NULL)
|
||||
res = NULL;
|
||||
else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue