--- trunk/reactos/lib/kernel32/file/file.c 2005-08-24 23:59:03 UTC (rev 17530)
+++ trunk/reactos/lib/kernel32/file/file.c 2005-08-25 00:33:37 UTC (rev 17531)
@@ -979,6 +979,12 @@
UNREFERENCED_PARAMETER(dwFlags);
+ if (IsConsoleHandle(hFile))
+ {
+ SetLastError(ERROR_INVALID_HANDLE);
+ return FALSE;
+ }
+
Status = NtQueryInformationFile(hFile,
&IoStatusBlock,
&FileBasic,
@@ -1008,6 +1014,12 @@
NTSTATUS Status;
UNREFERENCED_PARAMETER(dwFlags);
+
+ if (IsConsoleHandle(hFile))
+ {
+ SetLastError(ERROR_INVALID_HANDLE);
+ return FALSE;
+ }
Status = NtQueryInformationFile(hFile,
&IoStatusBlock,