Kaydet (Commit) d8b382dc authored tarafından Jack Jansen's avatar Jack Jansen

HMGetBalloonWindow should try to return an existing window.

üst cdb34837
...@@ -261,7 +261,7 @@ static PyObject *Help_HMGetBalloonWindow(_self, _args) ...@@ -261,7 +261,7 @@ static PyObject *Help_HMGetBalloonWindow(_self, _args)
_err = HMGetBalloonWindow(&window); _err = HMGetBalloonWindow(&window);
if (_err != noErr) return PyMac_Error(_err); if (_err != noErr) return PyMac_Error(_err);
_res = Py_BuildValue("O&", _res = Py_BuildValue("O&",
WinObj_New, window); WinObj_WhichWindow, window);
return _res; return _res;
} }
......
...@@ -51,6 +51,8 @@ class MyScanner(Scanner): ...@@ -51,6 +51,8 @@ class MyScanner(Scanner):
def makerepairinstructions(self): def makerepairinstructions(self):
return [ return [
([("WindowPtr", "*", "OutMode")],
[("ExistingWindowPtr", "*", "*")]),
] ]
if __name__ == "__main__": if __name__ == "__main__":
......
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