diff --git a/reactos/lib/msvcrt/io/setmode.c b/reactos/lib/msvcrt/io/setmode.c index 80476a04733..38be0cd5625 100644 --- a/reactos/lib/msvcrt/io/setmode.c +++ b/reactos/lib/msvcrt/io/setmode.c @@ -12,8 +12,14 @@ #include #include +#define NDEBUG +#include + int _setmode(int _fd, int _newmode) { + DPRINT("_setmod(fd %d, newmode %x)\n", _fd, _newmode); + if (_fd >= 0 && _fd < 5) + return _O_TEXT; return __fileno_setmode(_fd, _newmode); }