The output MenuRef of GetMenuItemHierarchicalMenu() may be NULL.
This commit is contained in:
parent
ad4f532f65
commit
8edfc542f0
|
@ -1638,7 +1638,7 @@ static PyObject *MenuObj_GetMenuItemHierarchicalMenu(MenuObject *_self, PyObject
|
|||
&outHierMenu);
|
||||
if (_err != noErr) return PyMac_Error(_err);
|
||||
_res = Py_BuildValue("O&",
|
||||
MenuObj_New, outHierMenu);
|
||||
OptMenuObj_New, outHierMenu);
|
||||
return _res;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -144,6 +144,8 @@ class MyScanner(Scanner):
|
|||
([("void", "*", "OutMode"), ("long", "*", "InMode"),
|
||||
("long", "*", "OutMode")],
|
||||
[("VarVarOutBuffer", "*", "InOutMode")]),
|
||||
([("MenuRef", 'outHierMenu', "OutMode")],
|
||||
[("OptMenuRef", 'outHierMenu', "OutMode")]),
|
||||
]
|
||||
|
||||
def writeinitialdefs(self):
|
||||
|
|
Loading…
Reference in New Issue