Author: fireball
Date: Sat Jan 3 06:42:29 2009
New Revision: 38530
URL:
http://svn.reactos.org/svn/reactos?rev=38530&view=rev
Log:
- Check if CompletionFilter has a valid value too.
Modified:
trunk/reactos/ntoskrnl/io/iomgr/iofunc.c
Modified: trunk/reactos/ntoskrnl/io/iomgr/iofunc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/io/iomgr/iofunc.c…
==============================================================================
--- trunk/reactos/ntoskrnl/io/iomgr/iofunc.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/io/iomgr/iofunc.c [iso-8859-1] Sat Jan 3 06:42:29 2009
@@ -1122,8 +1122,8 @@
/* Check if probing failed */
if (!NT_SUCCESS(Status)) return Status;
- /* Check if we have an correct parameter */
- if (!CompletionFilter)
+ /* Check if CompletionFilter is valid */
+ if (!CompletionFilter || (CompletionFilter & ~FILE_NOTIFY_VALID_MASK))
{
return STATUS_INVALID_PARAMETER;
}