- Retrieve the correct pin name
authorJohannes Anderwald <johannes.anderwald@reactos.org>
Tue, 29 Sep 2009 00:25:05 +0000 (00:25 +0000)
committerJohannes Anderwald <johannes.anderwald@reactos.org>
Tue, 29 Sep 2009 00:25:05 +0000 (00:25 +0000)
svn path=/trunk/; revision=43219

reactos/drivers/ksfilter/ks/connectivity.c

index bbca6a1..3aa55b9 100644 (file)
@@ -487,14 +487,14 @@ KsPinPropertyHandler(
                 break;
             }
 
                 break;
             }
 
-            if (!Descriptor[Pin->PinId].Category)
+            if (!Descriptor[Pin->PinId].Name)
             {
                 Irp->IoStatus.Information = 0;
                 Status = STATUS_SUCCESS;
                 break;
             }
 
             {
                 Irp->IoStatus.Information = 0;
                 Status = STATUS_SUCCESS;
                 break;
             }
 
-            Status = KspReadMediaCategory((LPGUID)Descriptor[Pin->PinId].Category, &KeyInfo);
+            Status = KspReadMediaCategory((LPGUID)Descriptor[Pin->PinId].Name, &KeyInfo);
             if (!NT_SUCCESS(Status))
             {
                 Irp->IoStatus.Information = 0;
             if (!NT_SUCCESS(Status))
             {
                 Irp->IoStatus.Information = 0;