When using "Repeating bytes" and multiple outstanding I/Os, the application re-uses and overwrittes one input buffer without waiting for pending Write completion.
This violates the Asynchronous I/O and Completion port I/Os spec:
https://msdn.microsoft.com/en-us/library/windows/desktop/aa365747(v=vs.85).aspx
There should be one buffer per outstanding I/O and it can be re-used only if the previously executed WriteFile completes.
Best Regards,
Wojciech Chojnowski
Thsi is definitely not the intented behavior. Can you shed more light about how you determined this, Windows OS version, does it only happen in repeating bytes mode, etc...