gh-102336: Ensure CancelIoEx result is not ignored (GH-102347)

fix ignored return value
This commit is contained in:
Max Bachmann 2023-03-01 13:01:39 +01:00 committed by GitHub
parent f91846ba39
commit d3d20743ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}