summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/win/_Winmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Mac/Modules/win/_Winmodule.c')
-rw-r--r--Mac/Modules/win/_Winmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mac/Modules/win/_Winmodule.c b/Mac/Modules/win/_Winmodule.c
index ef75cba..c0401e0 100644
--- a/Mac/Modules/win/_Winmodule.c
+++ b/Mac/Modules/win/_Winmodule.c
@@ -54,7 +54,7 @@ static PyObject *Win_Error;
PyTypeObject Window_Type;
-#define WinObj_Check(x) ((x)->ob_type == &Window_Type)
+#define WinObj_Check(x) ((x)->ob_type == &Window_Type || PyObject_TypeCheck((x), &Window_Type))
typedef struct WindowObject {
PyObject_HEAD