Author: janderwald
Date: Fri Dec 25 02:17:39 2009
New Revision: 44755
URL:
http://svn.reactos.org/svn/reactos?rev=44755&view=rev
Log:
[KS]
- Store missing result of operation
- Fixes a regression of KsStudio
Modified:
trunk/reactos/drivers/ksfilter/ks/connectivity.c
trunk/reactos/drivers/ksfilter/ks/topology.c
Modified: trunk/reactos/drivers/ksfilter/ks/connectivity.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/ksfilter/ks/connec…
==============================================================================
--- trunk/reactos/drivers/ksfilter/ks/connectivity.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/ksfilter/ks/connectivity.c [iso-8859-1] Fri Dec 25 02:17:39
2009
@@ -741,6 +741,7 @@
if (IoStack->Parameters.DeviceIoControl.OutputBufferLength ==
sizeof(KSMULTIPLE_ITEM))
{
/* buffer can only hold the length descriptor */
+ Irp->IoStatus.Information = sizeof(KSMULTIPLE_ITEM);
return STATUS_SUCCESS;
}
Modified: trunk/reactos/drivers/ksfilter/ks/topology.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/ksfilter/ks/topolo…
==============================================================================
--- trunk/reactos/drivers/ksfilter/ks/topology.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/ksfilter/ks/topology.c [iso-8859-1] Fri Dec 25 02:17:39 2009
@@ -159,7 +159,9 @@
HANDLE hKey;
PKEY_VALUE_PARTIAL_INFORMATION KeyInfo;
- DPRINT("KsTopologyPropertyHandler Irp %p Property %p Data %p Topology
%p\n", Irp, Property, Data, Topology);
+ IoStack = IoGetCurrentIrpStackLocation(Irp);
+
+ DPRINT("KsTopologyPropertyHandler Irp %p Property %p Data %p Topology %p
OutputLength %lu PropertyId %lu\n", Irp, Property, Data, Topology,
IoStack->Parameters.DeviceIoControl.OutputBufferLength, Property->Id);
if (Property->Flags != KSPROPERTY_TYPE_GET)
{
@@ -167,8 +169,6 @@
Irp->IoStatus.Information = 0;
return STATUS_NOT_IMPLEMENTED;
}
-
- IoStack = IoGetCurrentIrpStackLocation(Irp);
switch(Property->Id)
{