Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Windows: return bytes_written if WriteFile returns synchronously (#697)
According to documentation, the system reserves the right to run WriteFile synchronously, even if FILE_FLAG_OVERLAPPED is set, so `bytes_written` needs to be taken from `WriteFile` directly in that case.
- Loading branch information