mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Added debug messages.
Added special handling for std file descriptors. svn path=/trunk/; revision=2798
This commit is contained in:
parent
e8b5ff7de0
commit
5cd1300eac
1 changed files with 6 additions and 0 deletions
|
@ -12,8 +12,14 @@
|
||||||
#include <msvcrt/stdio.h>
|
#include <msvcrt/stdio.h>
|
||||||
#include <msvcrt/internal/file.h>
|
#include <msvcrt/internal/file.h>
|
||||||
|
|
||||||
|
#define NDEBUG
|
||||||
|
#include <msvcrt/msvcrtdbg.h>
|
||||||
|
|
||||||
|
|
||||||
int _setmode(int _fd, int _newmode)
|
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);
|
return __fileno_setmode(_fd, _newmode);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue