[ros-diffs] [janderwald] 44755: [KS] - Store missing result of operation - Fixes a regression of KsStudio

janderwald at svn.reactos.org janderwald at svn.reactos.org
Fri Dec 25 02:17:40 CET 2009


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/connectivity.c?rev=44755&r1=44754&r2=44755&view=diff
==============================================================================
--- 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/topology.c?rev=44755&r1=44754&r2=44755&view=diff
==============================================================================
--- 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)
     {




More information about the Ros-diffs mailing list