Update of /cvsroot/pywin32/pywin32/com/win32comext/taskscheduler/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28101
Modified Files:
Tag: py3k
taskscheduler.cpp
Log Message:
Call PyType_Ready for PyTASK_TRIGGER
Index: taskscheduler.cpp
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32comext/taskscheduler/src/taskscheduler.cpp,v
retrieving revision 1.2.4.1
retrieving revision 1.2.4.2
diff -C2 -d -r1.2.4.1 -r1.2.4.2
*** taskscheduler.cpp 29 Aug 2008 08:33:26 -0000 1.2.4.1
--- taskscheduler.cpp 7 Sep 2008 04:12:25 -0000 1.2.4.2
***************
*** 39,47 ****
#define RETURN_ERROR return;
module = Py_InitModule("taskscheduler", taskscheduler_methods);
- if (!module)
- return;
- dict = PyModule_GetDict(module);
- if (!dict)
- return;
#else
#define RETURN_ERROR return NULL;
--- 39,42 ----
***************
*** 54,63 ****
};
module = PyModule_Create(&taskscheduler_def);
if (!module)
! return NULL;
dict = PyModule_GetDict(module);
if (!dict)
! return NULL;
! #endif
// Register all of our interfaces, gateways and IIDs.
--- 49,61 ----
};
module = PyModule_Create(&taskscheduler_def);
+ #endif
+
if (!module)
! RETURN_ERROR;
dict = PyModule_GetDict(module);
if (!dict)
! RETURN_ERROR;
! if (PyType_Ready(&PyTASK_TRIGGERType) == -1)
! RETURN_ERROR;
// Register all of our interfaces, gateways and IIDs.
|