From 12b89bcc9915090eb42ae638e565af44b6832a23 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Thu, 23 Nov 2023 17:39:10 +0200 Subject: xz: Tweak a comment. --- src/xz/util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xz/util.c b/src/xz/util.c index 25c20765..c9ed8287 100644 --- a/src/xz/util.c +++ b/src/xz/util.c @@ -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; -- cgit v1.2.3