- Add checking of CompletionFilter parameter. This is fixed 3 wine tests for kernel32
authorDmitry Chapyshev <dmitry@reactos.org>
Sat, 3 Jan 2009 12:22:14 +0000 (12:22 +0000)
committerDmitry Chapyshev <dmitry@reactos.org>
Sat, 3 Jan 2009 12:22:14 +0000 (12:22 +0000)
svn path=/trunk/; revision=38529

reactos/ntoskrnl/io/iomgr/iofunc.c

index 3a1774e..d776b5d 100644 (file)
@@ -1121,6 +1121,12 @@ NtNotifyChangeDirectoryFile(IN HANDLE FileHandle,
 
         /* Check if probing failed */
         if (!NT_SUCCESS(Status)) return Status;
+
+        /* Check if we have an correct parameter */
+        if (!CompletionFilter)
+        {
+            return STATUS_INVALID_PARAMETER;
+        }
     }
 
     /* Get File Object */