Commit ff584e4d authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

Pass handle to GetFileType, not MSVCRT fd.

parent fe0529db
......@@ -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;
}
/*********************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment