Author: pschweitzer
Date: Sun Aug 31 14:47:19 2008
New Revision: 35844
URL:
http://svn.reactos.org/svn/reactos?rev=35844&view=rev
Log:
Add primary tests to FsRtlInsertPerFileObjectContext.
That's only to test branch build ;).
Modified:
branches/pierre-fsd/ntoskrnl/fsrtl/filtrctx.c
Modified: branches/pierre-fsd/ntoskrnl/fsrtl/filtrctx.c
URL:
http://svn.reactos.org/svn/reactos/branches/pierre-fsd/ntoskrnl/fsrtl/filtr…
==============================================================================
--- branches/pierre-fsd/ntoskrnl/fsrtl/filtrctx.c [iso-8859-1] (original)
+++ branches/pierre-fsd/ntoskrnl/fsrtl/filtrctx.c [iso-8859-1] Sun Aug 31 14:47:19 2008
@@ -112,7 +112,7 @@
}
ExAcquireFastMutex(PerStreamContext->FastMutex);
- InsertHeadList(&PerStreamContext->FilterContexts, &Ptr->Links);
+ InsertHeadList(&(PerStreamContext->FilterContexts), &(Ptr->Links));
ExReleaseFastMutex(PerStreamContext->FastMutex);
return STATUS_SUCCESS;
}
@@ -179,6 +179,16 @@
FsRtlInsertPerFileObjectContext(IN PFILE_OBJECT FileObject,
IN PFSRTL_PER_FILEOBJECT_CONTEXT Ptr)
{
+ if (!FileObject)
+ {
+ return STATUS_INVALID_PARAMETER;
+ }
+
+ if (FileObject->Flags & FO_NAMED_PIPE)
+ {
+ return STATUS_INVALID_DEVICE_REQUEST;
+ }
+
KEBUGCHECK(0);
return STATUS_NOT_IMPLEMENTED;
}