diff options
author | Cristián Maureira-Fredes <cmaureir@users.noreply.github.com> | 2023-01-15 15:12:37 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-15 15:12:37 (GMT) |
commit | 5e9df888dd5ab0e59d1cebc30c998a17aa65a3e2 (patch) | |
tree | bafc6e647a6f13a971cdfee51e68f4a4a95ffc0d /Modules | |
parent | f6307d44167e9c110a1db442f7a33deb365e89a8 (diff) | |
download | cpython-5e9df888dd5ab0e59d1cebc30c998a17aa65a3e2.zip cpython-5e9df888dd5ab0e59d1cebc30c998a17aa65a3e2.tar.gz cpython-5e9df888dd5ab0e59d1cebc30c998a17aa65a3e2.tar.bz2 |
Fix `ctypes` typo in `set_exception` (#101040)
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_ctypes/callproc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_ctypes/callproc.c b/Modules/_ctypes/callproc.c index 1958758..f6d98bb 100644 --- a/Modules/_ctypes/callproc.c +++ b/Modules/_ctypes/callproc.c @@ -286,7 +286,7 @@ static WCHAR *FormatError(DWORD code) #ifndef DONT_USE_SEH static void SetException(DWORD code, EXCEPTION_RECORD *pr) { - if (PySys_Audit("ctypes.seh_exception", "I", code) < 0) { + if (PySys_Audit("ctypes.set_exception", "I", code) < 0) { /* An exception was set by the audit hook */ return; } |