1
0
Fork 0
mirror of https://git.tukaani.org/xz.git synced 2024-04-04 12:36:23 +02:00

xz: Tweak a comment.

This commit is contained in:
Lasse Collin 2023-11-23 17:39:10 +02:00
parent 2ab2e4b5a5
commit 12b89bcc99

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;