diff options
author | Max Bachmann <kontakt@maxbachmann.de> | 2023-03-01 12:01:39 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-01 12:01:39 (GMT) |
commit | d3d20743ee1ae7e0be17bacd278985cffa864816 (patch) | |
tree | b4b4b64dcadb46041ad3efe4429dfcf2b9a4dd88 /Modules | |
parent | f91846ba390f4437bcd525dfe6ed4355a894e159 (diff) | |
download | cpython-d3d20743ee1ae7e0be17bacd278985cffa864816.zip cpython-d3d20743ee1ae7e0be17bacd278985cffa864816.tar.gz cpython-d3d20743ee1ae7e0be17bacd278985cffa864816.tar.bz2 |
gh-102336: Ensure CancelIoEx result is not ignored (GH-102347)
fix ignored return value
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_winapi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_winapi.c b/Modules/_winapi.c index 8c4c725..eefc257 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 } |