Commit 5b471ffd authored by Just van Rossum's avatar Just van Rossum

The output MenuRef of GetMenuItemHierarchicalMenu() may be NULL.

parent 33f6835e
......@@ -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):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment