mirror of
https://github.com/python/cpython
synced 2024-09-16 02:49:57 +00: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) {
|
if (self->pending) {
|
||||||
Py_BEGIN_ALLOW_THREADS
|
Py_BEGIN_ALLOW_THREADS
|
||||||
CancelIoEx(self->handle, &self->overlapped);
|
res = CancelIoEx(self->handle, &self->overlapped);
|
||||||
Py_END_ALLOW_THREADS
|
Py_END_ALLOW_THREADS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue