New ACC version.

committer: mfx <mfx> 1062472636 +0000
This commit is contained in:
Markus F.X.J. Oberhumer
2003-09-02 03:17:16 +00:00
parent 919a899c39
commit b0e961b90b
7 changed files with 74 additions and 14 deletions
+1 -2
View File
@@ -128,8 +128,7 @@ ACCLIB_PUBLIC(int, acc_isatty) (int fd)
if ((HANDLE)h != INVALID_HANDLE_VALUE)
{
DWORD d = 0;
int r = GetConsoleMode((HANDLE)h, &d);
if (!r)
if (GetConsoleMode((HANDLE)h, &d) == 0)
return 0; /* GetConsoleMode failed -> not a tty */
}
}