]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
xz: Tweak a comment.
authorLasse Collin <lasse.collin@tukaani.org>
Thu, 23 Nov 2023 15:39:10 +0000 (17:39 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Thu, 23 Nov 2023 15:39:10 +0000 (17:39 +0200)
src/xz/util.c

index 25c207650911a83655a3b00a244ba6121bbb9c19..c9ed82871c5e4240816270f692c30649e7109ebf 100644 (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;