mirror of
https://github.com/python/cpython.git
synced 2024-11-27 03:45:08 +08:00
gh-102336: Ensure CancelIoEx result is not ignored (GH-102347)
fix ignored return value
This commit is contained in:
parent
f91846ba39
commit
d3d20743ee
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user