Author: janderwald
Date: Wed Aug 19 14:32:56 2009
New Revision: 42785
URL:
http://svn.reactos.org/svn/reactos?rev=42785&view=rev
Log:
- Arch should learn english first before bashing gcc
Modified:
trunk/reactos/drivers/ksfilter/ks/irp.c
Modified: trunk/reactos/drivers/ksfilter/ks/irp.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/ksfilter/ks/irp.c?…
==============================================================================
--- trunk/reactos/drivers/ksfilter/ks/irp.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/ksfilter/ks/irp.c [iso-8859-1] Wed Aug 19 14:32:56 2009
@@ -645,7 +645,6 @@
IN ULONG ProbeFlags,
IN ULONG HeaderSize)
{
-#if 0
PMDL Mdl;
PVOID Buffer;
LOCK_OPERATION Operation;
@@ -826,10 +825,10 @@
ExRaiseStatus(STATUS_INVALID_PARAMETER);
}
- if (StreamHeader->FrameExtend)
+ if (StreamHeader->FrameExtent)
{
/* allocate an mdl */
- Mdl = IoAllocateMdl(StreamHeader->Data,
StreamHeader->FrameExtend, FALSE, TRUE, Irp);
+ Mdl = IoAllocateMdl(StreamHeader->Data,
StreamHeader->FrameExtent, FALSE, TRUE, Irp);
if (!Mdl)
{
@@ -857,10 +856,10 @@
}
}
- if (StreamHeader->FrameExtend)
+ if (StreamHeader->FrameExtent)
{
/* allocate an mdl */
- Mdl = IoAllocateMdl(StreamHeader->Data,
StreamHeader->FrameExtend, Irp->MdlAddress != NULL, TRUE, Irp);
+ Mdl = IoAllocateMdl(StreamHeader->Data,
StreamHeader->FrameExtent, Irp->MdlAddress != NULL, TRUE, Irp);
if (!Mdl)
{
/* not enough memory */
@@ -933,6 +932,9 @@
/* alloc mdls */
goto AllocMdl;
}
+
+ /* check all stream headers */
+ StreamHeader = (PKSSTREAM_HEADER)Irp->AssociatedIrp.SystemBuffer;
_SEH2_TRY
{
@@ -965,7 +967,7 @@
if (ProbeFlags & KSPROBE_STREAMWRITE)
{
- if (StreamHeader->DataUsed > StreamHeader->FrameExtend)
+ if (StreamHeader->DataUsed > StreamHeader->FrameExtent)
{
/* frame extend can never be smaller */
ExRaiseStatus(STATUS_INVALID_BUFFER_SIZE);
@@ -986,10 +988,10 @@
ExRaiseStatus(STATUS_INVALID_PARAMETER);
}
- if (StreamHeader->FrameExtend)
+ if (StreamHeader->FrameExtent)
{
/* allocate an mdl */
- Mdl = IoAllocateMdl(StreamHeader->Data,
StreamHeader->FrameExtend, FALSE, TRUE, Irp);
+ Mdl = IoAllocateMdl(StreamHeader->Data,
StreamHeader->FrameExtent, FALSE, TRUE, Irp);
if (!Mdl)
{
@@ -1037,10 +1039,6 @@
}
return STATUS_INVALID_BUFFER_SIZE;
-#else
- UNIMPLEMENTED
- return STATUS_NOT_IMPLEMENTED;
-#endif
}
/*