xz: Tweak a comment.

This commit is contained in:
Lasse Collin 2023-11-23 17:39:10 +02:00
parent 2ab2e4b5a5
commit 12b89bcc99
1 changed files with 2 additions and 2 deletions

View File

@ -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;