Skip to content

Commit d3d2074

Browse files
authored
gh-102336: Ensure CancelIoEx result is not ignored (GH-102347)
fix ignored return value
1 parent f91846b commit d3d2074

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_winapi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ _winapi_Overlapped_cancel_impl(OverlappedObject *self)
288288

289289
if (self->pending) {
290290
Py_BEGIN_ALLOW_THREADS
291-
CancelIoEx(self->handle, &self->overlapped);
291+
res = CancelIoEx(self->handle, &self->overlapped);
292292
Py_END_ALLOW_THREADS
293293
}
294294

0 commit comments

Comments
 (0)