Commit 155e2b2c authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcrt: Fix console detection in _write.

parent 305aaec8
......@@ -3447,7 +3447,7 @@ int CDECL MSVCRT__write(int fd, const void* buf, unsigned int count)
ioinfo *info = get_ioinfo(fd);
HANDLE hand = info->handle;
DWORD num_written, i;
BOOL console;
BOOL console = FALSE;
if (hand == INVALID_HANDLE_VALUE || fd == MSVCRT_NO_CONSOLE_FD)
{
......@@ -3482,7 +3482,7 @@ int CDECL MSVCRT__write(int fd, const void* buf, unsigned int count)
return num_written;
}
console = MSVCRT__isatty(fd);
if (MSVCRT__isatty(fd)) console = VerifyConsoleIoHandle(hand);
for (i = 0; i < count;)
{
const char *s = buf;
......
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