x/sys/windows: improper fix to previous report #65378
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
FixPending
Issues that have a fix which has not yet been reviewed or submitted.
NeedsFix
The path to resolution is known, but the work has not been done.
OS-Windows
Milestone
Go version
1.21.5
Output of
go env
in your module/workspace:What did you do?
Submitted #65365
But the fix that was submitted creates different problems, including when
race
is not enabled.What did you see happen?
Opening a new issue because it's not clear if follow up comments after an issue is closed are seen.
I submitted issue #65365
However, the fix creates additional problems.
the fix supplies the optional parameter
lpNumberOfBytesRead
even whenrace
is not set, and when the caller provided null.However, the documentation explicitly says don't do that:
So, as a result of the fix, the library now introduces indeterminant behavior into calling code, even when race is not enabled.
What did you expect to see?
A fix that doesn't break additional code.
Suggest the conditional become
Or similar, since the value of
lpNumberOfBytesRead
is not valid in the case where an overlapped operation has been initiated.The text was updated successfully, but these errors were encountered: