From 5cd1300eacc25ce1dd47cf9f6380281d04712513 Mon Sep 17 00:00:00 2001 From: Hartmut Birr Date: Mon, 1 Apr 2002 21:51:59 +0000 Subject: [PATCH] Added debug messages. Added special handling for std file descriptors. svn path=/trunk/; revision=2798 --- reactos/lib/msvcrt/io/setmode.c | 6 ++++++ 1 file changed, 6 insertions(+) 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); }