xz: Tweak a comment.
This commit is contained in:
parent
2ab2e4b5a5
commit
12b89bcc99
|
@ -267,8 +267,8 @@ is_tty(int fd)
|
|||
#if defined(_WIN32) && !defined(__CYGWIN__)
|
||||
// There is no need to check if handle == INVALID_HANDLE_VALUE
|
||||
// because it will return false anyway when used in GetConsoleMode().
|
||||
// The resulting HANDLE does not need to be closed based on Windows
|
||||
// API documentation.
|
||||
// The resulting HANDLE is owned by the file descriptor.
|
||||
// The HANDLE must not be closed here.
|
||||
intptr_t handle = _get_osfhandle(fd);
|
||||
DWORD mode;
|
||||
|
||||
|
|
Loading…
Reference in New Issue