From: Max Bachmann Date: Wed, 1 Mar 2023 12:01:39 +0000 (+0100) Subject: gh-102336: Ensure CancelIoEx result is not ignored (GH-102347) X-Git-Tag: v3.12.0a6~43 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d3d20743ee1ae7e0be17bacd278985cffa864816;p=thirdparty%2FPython%2Fcpython.git gh-102336: Ensure CancelIoEx result is not ignored (GH-102347) fix ignored return value --- diff --git a/Modules/_winapi.c b/Modules/_winapi.c index 8c4c725b9df2..eefc2571ee82 100644 --- a/Modules/_winapi.c +++ b/Modules/_winapi.c @@ -288,7 +288,7 @@ _winapi_Overlapped_cancel_impl(OverlappedObject *self) if (self->pending) { Py_BEGIN_ALLOW_THREADS - CancelIoEx(self->handle, &self->overlapped); + res = CancelIoEx(self->handle, &self->overlapped); Py_END_ALLOW_THREADS }