Skip to content

Commit 446de7b

Browse files
authored
Merge pull request #23066 from DWesl/cygwin-define-pyerr-setfromwindowserr
2 parents 5fc0441 + 8924913 commit 446de7b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/_tkagg.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
* also.
2525
*/
2626
#define WIN32_DLL
27+
static inline PyObject *PyErr_SetFromWindowsErr(int ierr) {
28+
PyErr_SetString(PyExc_OSError, "Call to EnumProcessModules failed");
29+
return NULL;
30+
}
2731
#endif
2832

2933
#ifdef WIN32_DLL

0 commit comments

Comments
 (0)