1 --- a/Modules/_ctypes/_ctypes.c 2012-01-26 15:41:30.000000000 +0100
2 +++ b/Modules/_ctypes/_ctypes.c 2012-01-26 15:44:41.046977137 +0100
5 /* dlerror() isn't very helpful on cygwin */
6 PyErr_Format(PyExc_ValueError,
7 - "symbol '%s' not found (%s) ",
8 + "symbol '%s' not found",
11 - PyErr_SetString(PyExc_ValueError, ctypes_dlerror());
12 + const char *err = ctypes_dlerror();
14 + PyErr_Format(PyExc_ValueError,
15 + "symbol '%s' not found",
18 + PyErr_SetString(PyExc_ValueError, err);
22 @@ -3290,10 +3296,16 @@
24 /* dlerror() isn't very helpful on cygwin */
25 PyErr_Format(PyExc_AttributeError,
26 - "function '%s' not found (%s) ",
27 + "function '%s' not found",
30 - PyErr_SetString(PyExc_AttributeError, ctypes_dlerror());
31 + const char *err = ctypes_dlerror();
33 + PyErr_Format(PyExc_AttributeError,
34 + "function '%s' not found",
37 + PyErr_SetString(PyExc_AttributeError, err);