mirror of
https://github.com/reactos/reactos.git
synced 2025-05-06 18:31:26 +00:00
Print only the complete information if the fd is valid itself (in is_valid_fd).
svn path=/trunk/; revision=17781
This commit is contained in:
parent
f8c9d4f80f
commit
d672727c6a
1 changed files with 9 additions and 2 deletions
|
@ -99,8 +99,15 @@ inline BOOL is_valid_fd(int fd)
|
|||
BOOL b = (fd >= 0 && fd < g_fdend && (fdinfo(fd)->fdflags & FOPEN));
|
||||
|
||||
if (!b){
|
||||
DPRINT1("not valid fd %i, g_fdend %i, fdinfo %x, bucket %x, fdflags %x\n",
|
||||
fd,g_fdend,fdinfo(fd),fdinfo_bucket(fd),fdinfo(fd)->fdflags);
|
||||
if (fd >= 0 && fd < g_fdend)
|
||||
{
|
||||
DPRINT1("not valid fd %i, g_fdend %i, fdinfo %x, bucket %x, fdflags %x\n",
|
||||
fd,g_fdend,fdinfo(fd),fdinfo_bucket(fd),fdinfo(fd)->fdflags);
|
||||
}
|
||||
else
|
||||
{
|
||||
DPRINT1("not valid fd %i, g_fdend %i\n",fd,g_fdend);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue