diff --git a/reactos/ntoskrnl/io/iomgr/iofunc.c b/reactos/ntoskrnl/io/iomgr/iofunc.c index 492a76c19c8..9d99a82476b 100644 --- a/reactos/ntoskrnl/io/iomgr/iofunc.c +++ b/reactos/ntoskrnl/io/iomgr/iofunc.c @@ -2115,6 +2115,7 @@ NtQueryInformationFile(IN HANDLE FileHandle, } _SEH2_END; } +#if DBG else { /* Validate the information class */ @@ -2132,6 +2133,7 @@ NtQueryInformationFile(IN HANDLE FileHandle, return STATUS_INFO_LENGTH_MISMATCH; } } +#endif /* Reference the Handle */ Status = ObReferenceObjectByHandle(FileHandle,