Skip to content

Commit

Permalink
xz: Tweak a comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
Larhzu committed Nov 23, 2023
1 parent 2ab2e4b commit 12b89bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/xz/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 12b89bc

Please sign in to comment.