[Openvpn-devel] [PATCH] Add error reporting to get_console_input_win32().

2021-06-18 Thread Gert Doering
When the function setup fails due to invalid file handles, or because WriteFile(err, ...) fails (due to file handle corruption elsewhere), the function used to silently "return false" Change this to print a M_WARN|M_ERRNO message. Also, change the function style to early-return style (= large dif

[Openvpn-devel] [PATCH v2] Add error reporting to get_console_input_win32().

2021-06-18 Thread Gert Doering
When the function setup fails due to invalid file handles, or because WriteFile(err, ...) fails (due to file handle corruption elsewhere), the function used to silently "return false" Change this to print a M_WARN|M_ERRNO message. Also, change the function style to early-return style (= large dif