File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1656,12 +1656,12 @@ They are instances of a private class:
1656
1656
passed arguments.
1657
1657
1658
1658
1659
- .. audit-event :: ctypes.seh_exception code foreign-functions
1659
+ .. audit-event :: ctypes.set_exception code foreign-functions
1660
1660
1661
1661
On Windows, when a foreign function call raises a system exception (for
1662
1662
example, due to an access violation), it will be captured and replaced with
1663
1663
a suitable Python exception. Further, an auditing event
1664
- ``ctypes.seh_exception `` with argument ``code `` will be raised, allowing an
1664
+ ``ctypes.set_exception `` with argument ``code `` will be raised, allowing an
1665
1665
audit hook to replace the exception with its own.
1666
1666
1667
1667
.. audit-event :: ctypes.call_function func_pointer,arguments foreign-functions
Original file line number Diff line number Diff line change @@ -286,7 +286,7 @@ static WCHAR *FormatError(DWORD code)
286
286
#ifndef DONT_USE_SEH
287
287
static void SetException (DWORD code , EXCEPTION_RECORD * pr )
288
288
{
289
- if (PySys_Audit ("ctypes.seh_exception " , "I" , code ) < 0 ) {
289
+ if (PySys_Audit ("ctypes.set_exception " , "I" , code ) < 0 ) {
290
290
/* An exception was set by the audit hook */
291
291
return ;
292
292
}
You can’t perform that action at this time.
0 commit comments