Author: pschweitzer
Date: Fri Aug 29 07:48:59 2008
New Revision: 35754
URL:
http://svn.reactos.org/svn/reactos?rev=35754&view=rev
Log:
In FsRtlInsertPerStreamContext, FsRtlLookupPerStreamContextInternal,
FsRtlRemovePerStreamContext: removed not needed assertion and return normally when
PFSRTL_ADVANCED_FCB_HEADER pointer is null
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] Fri Aug 29 07:48:59 2008
@@ -48,9 +48,7 @@
PLIST_ENTRY NextEntry;
PFSRTL_PER_STREAM_CONTEXT TmpPerStreamContext, PerStreamContext = NULL;
- ASSERT(StreamContext);
-
- if (!(StreamContext->Flags2 & FSRTL_FLAG2_SUPPORTS_FILTER_CONTEXTS))
+ if (!(StreamContext) || !(StreamContext->Flags2 &
FSRTL_FLAG2_SUPPORTS_FILTER_CONTEXTS))
{
return NULL;
}
@@ -108,9 +106,7 @@
FsRtlInsertPerStreamContext(IN PFSRTL_ADVANCED_FCB_HEADER PerStreamContext,
IN PFSRTL_PER_STREAM_CONTEXT Ptr)
{
- ASSERT(PerStreamContext);
-
- if (!(PerStreamContext->Flags2 & FSRTL_FLAG2_SUPPORTS_FILTER_CONTEXTS))
+ if (!(PerStreamContext) || !(PerStreamContext->Flags2 &
FSRTL_FLAG2_SUPPORTS_FILTER_CONTEXTS))
{
return STATUS_INVALID_DEVICE_REQUEST;
}
@@ -133,9 +129,7 @@
PLIST_ENTRY NextEntry;
PFSRTL_PER_STREAM_CONTEXT TmpPerStreamContext, PerStreamContext = NULL;
- ASSERT(StreamContext);
-
- if (!(StreamContext->Flags2 & FSRTL_FLAG2_SUPPORTS_FILTER_CONTEXTS))
+ if (!(StreamContext) || !(StreamContext->Flags2 &
FSRTL_FLAG2_SUPPORTS_FILTER_CONTEXTS))
{
return NULL;
}