-/* $Id: file.c,v 1.31 2002/04/27 19:15:00 hbirr Exp $
+/* $Id: file.c,v 1.32 2002/05/07 22:21:47 hbirr Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
NTSTATUS errCode;
IO_STATUS_BLOCK IoStatusBlock;
+ if (IsConsoleHandle(hFile))
+ {
+ return FALSE;
+ }
+
errCode = NtFlushBuffersFile(hFile,
&IoStatusBlock);
if (!NT_SUCCESS(errCode))
}
/* check console handles */
- if (((ULONG)hFile & 3) == 3)
+ if (IsConsoleHandle(hFile))
{
// if (VerifyConsoleHandle(hFile))
return FILE_TYPE_CHAR;