mirror of https://github.com/python/cpython.git
[3.11] gh-119690: Fixes buffer type confusion in _winapi.CreateNamedPipe audit event (#119734)
gh-119690: Fixes buffer type confusion in _winapi.CreateNamedPipe audit event
This commit is contained in:
parent
fc0b8259e6
commit
697beec04d
|
@ -0,0 +1,2 @@
|
|||
Fixes data type confusion in audit event raised by
|
||||
``_winapi.CreateNamedPipe``.
|
|
@ -708,7 +708,7 @@ _winapi_CreateNamedPipe_impl(PyObject *module, LPCTSTR name, DWORD open_mode,
|
|||
{
|
||||
HANDLE handle;
|
||||
|
||||
if (PySys_Audit("_winapi.CreateNamedPipe", "uII",
|
||||
if (PySys_Audit("_winapi.CreateNamedPipe", "sII",
|
||||
name, open_mode, pipe_mode) < 0) {
|
||||
return INVALID_HANDLE_VALUE;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue