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

Fix issue where Sync was passing the wrong file handle. #10

Merged

Conversation

kellypleahy
Copy link
Contributor

Sync was returning an error when being called on any file. This was a result of passing the wrong handle to FlushFileBuffers - it was passing the handle for the file mapping, rather than the handle for the underlying file.

Apparently nobody was testing the result from Sync previously as the file handle it was passing would never have worked.

@kellypleahy
Copy link
Contributor Author

kellypleahy commented Mar 29, 2022

@tysonmote Any feedback on this? Let me know if you want me to do something differently in the PR. Thanks.

@tysonmote
Copy link
Owner

Thanks, @kellypleahy! Merging now.

@tysonmote tysonmote merged commit 237f44f into tysonmote:master Mar 29, 2022
@kellypleahy kellypleahy deleted the bugfix/Sync-wrong-file-handle branch March 29, 2022 05:29
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