summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2008-01-28 08:44:13 (GMT)
committerThomas Heller <theller@ctypes.org>2008-01-28 08:44:13 (GMT)
commit99120c4f7ea621ba2386c11d1300da335853dd68 (patch)
treeecc8d49017ac2fa6056b6a09668c7c86acb9e05a /Modules
parentd7e1b2bd17cee31bb581a71fff20101be0b34bc6 (diff)
downloadcpython-99120c4f7ea621ba2386c11d1300da335853dd68.zip
cpython-99120c4f7ea621ba2386c11d1300da335853dd68.tar.gz
cpython-99120c4f7ea621ba2386c11d1300da335853dd68.tar.bz2
Revert rev. 59925, it breaks comtypes (I need to further examine this).
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_ctypes/_ctypes.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/Modules/_ctypes/_ctypes.c b/Modules/_ctypes/_ctypes.c
index 0f88f96..5d3cba5 100644
--- a/Modules/_ctypes/_ctypes.c
+++ b/Modules/_ctypes/_ctypes.c
@@ -3435,11 +3435,6 @@ CFuncPtr_call(CFuncPtrObject *self, PyObject *inargs, PyObject *kwds)
pProc = *(void **)self->b_ptr;
- if (pProc == NULL) {
- PyErr_SetString(PyExc_ValueError,
- "attempt to call NULL function pointer");
- return NULL;
- }
#ifdef MS_WIN32
if (self->index) {
/* It's a COM method */