summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/win/winscan.py
diff options
context:
space:
mode:
authorJust van Rossum <just@letterror.com>2002-06-05 17:41:03 (GMT)
committerJust van Rossum <just@letterror.com>2002-06-05 17:41:03 (GMT)
commit84fca948c8e90dae94c5815d8b9ae2ff2331b676 (patch)
tree614a3aa54362ab4dc0271cb21ad5d2b62ab8dee7 /Mac/Modules/win/winscan.py
parentaee2d5f975dfa53fb270439d9e09d542d8ea765f (diff)
downloadcpython-84fca948c8e90dae94c5815d8b9ae2ff2331b676.zip
cpython-84fca948c8e90dae94c5815d8b9ae2ff2331b676.tar.gz
cpython-84fca948c8e90dae94c5815d8b9ae2ff2331b676.tar.bz2
fixed refcount leak in CreateNewWindow() and CreateWindowFromResource().
Diffstat (limited to 'Mac/Modules/win/winscan.py')
-rw-r--r--Mac/Modules/win/winscan.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Mac/Modules/win/winscan.py b/Mac/Modules/win/winscan.py
index c6ba7ec..cfe3eb3 100644
--- a/Mac/Modules/win/winscan.py
+++ b/Mac/Modules/win/winscan.py
@@ -136,6 +136,13 @@ class MyScanner(Scanner):
([("void", "wStorage", "OutMode")],
[("NullStorage", "*", "InMode")]),
+ # match FindWindowOfClass
+ ([("WindowRef", "outWindow", "OutMode"), ("WindowPartCode", "outWindowPart", "OutMode")],
+ [("ExistingWindowPtr", "*", "OutMode"), ("WindowPartCode", "outWindowPart", "OutMode")]),
+ # then match CreateNewWindow and CreateWindowFromResource
+ ([("WindowRef", "outWindow", "OutMode")],
+ [("WindowRef", "*", "*")]),
+
([("WindowPtr", "*", "OutMode")],
[("ExistingWindowPtr", "*", "*")]),
([("WindowRef", "*", "OutMode")], # Same, but other style headerfiles