Pass handle to GetFileType, not MSVCRT fd.

This commit is contained in:
Marcus Meissner 2001-07-23 18:02:18 +00:00 committed by Alexandre Julliard
parent fe0529dbea
commit ff584e4d9c
1 changed files with 1 additions and 1 deletions

View File

@ -645,7 +645,7 @@ int _isatty(int fd)
if (hand == INVALID_HANDLE_VALUE)
return 0;
return GetFileType(fd) == FILE_TYPE_CHAR? 1 : 0;
return GetFileType(hand) == FILE_TYPE_CHAR? 1 : 0;
}
/*********************************************************************