Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aio: windows: fix initialization error in ovlOff #9

Merged
merged 1 commit into from
Aug 29, 2024

Conversation

RcCreeperTech
Copy link
Contributor

This PR fixes a segfault that occurred on Windows when attempting to run the aio_dynamic.zig and aio_immediate.zig examples. This segafault was occurring because of a failure to initialize the OVERLAPPED structs associated with the I/O operations. According to the Windows documentation this struct needs to be zero initialized before it is used in any API calls. This PR simply changes the initialization function ovlOff to properly zero initialize the structs.

@Cloudef Cloudef merged commit bdeea5a into Cloudef:master Aug 29, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants