[KS]
authorJohannes Anderwald <johannes.anderwald@reactos.org>
Fri, 25 Dec 2009 01:17:39 +0000 (01:17 +0000)
committerJohannes Anderwald <johannes.anderwald@reactos.org>
Fri, 25 Dec 2009 01:17:39 +0000 (01:17 +0000)
- Store missing result of operation
- Fixes a regression of KsStudio

svn path=/trunk/; revision=44755

reactos/drivers/ksfilter/ks/connectivity.c
reactos/drivers/ksfilter/ks/topology.c

index 3d5b9da..3e1e296 100644 (file)
@@ -741,6 +741,7 @@ KsHandleSizedListQuery(
     if (IoStack->Parameters.DeviceIoControl.OutputBufferLength == sizeof(KSMULTIPLE_ITEM))
     {
         /* buffer can only hold the length descriptor */
+        Irp->IoStatus.Information = sizeof(KSMULTIPLE_ITEM);
         return STATUS_SUCCESS;
     }
 
index 3c3ee31..87eb1e9 100644 (file)
@@ -159,7 +159,9 @@ KsTopologyPropertyHandler(
     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)
     {
@@ -168,8 +170,6 @@ KsTopologyPropertyHandler(
         return STATUS_NOT_IMPLEMENTED;
     }
 
-    IoStack = IoGetCurrentIrpStackLocation(Irp);
-
     switch(Property->Id)
     {
         case KSPROPERTY_TOPOLOGY_CATEGORIES: