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 #1573: ReadFile: pass NULL pointer to lpNumberOfBytesRead #1576

Merged
merged 1 commit into from Feb 4, 2020

Conversation

coot
Copy link
Contributor

@coot coot commented Feb 4, 2020

We only use 'ReadFile' in asynchronous way, and thus we should pass
a null pointer:
https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-readfile

@coot coot added networking mux issues related to network-mux labels Feb 4, 2020
@coot coot requested a review from dcoutts February 4, 2020 14:49
Copy link
Contributor

@dcoutts dcoutts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@coot
Copy link
Contributor Author

coot commented Feb 4, 2020

I had a todo for that, but somehow I lost it ... it's good that the reviewer brought this back.

bors r+

iohk-bors bot added a commit that referenced this pull request Feb 4, 2020
1576: Fix #1573: ReadFile: pass NULL pointer to lpNumberOfBytesRead r=coot a=coot

We only use 'ReadFile' in asynchronous way, and thus we should pass
a null pointer:
https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-readfile

Co-authored-by: Marcin Szamotulski <profunctor@pm.me>
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Feb 4, 2020

@iohk-bors iohk-bors bot merged commit 1975f87 into master Feb 4, 2020
@iohk-bors iohk-bors bot deleted the coot/windows-ReadFile branch February 4, 2020 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mux issues related to network-mux
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants