Explicit cast to HANDLE for Read/WriteConsoleW calls
Before adoption: this commit came in with the history the project adopted, so no landing records it.
See [1]. The C call expects the first argument to be of type HANDLE. Most Python variants can directly and safely pass the int, but not all. This can cause click to raise OSError with errno 6 (invalid file handle). [1] https://docs.microsoft.com/en-us/windows/console/writeconsole
authored by Paul Kilgo · committed by David Lord · parent 79e4ae3 · Browse files · 2 files+4 added−3 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+4 added−3 removed
- other:+4 added−3 removed