- Fix 2 bugs:
authorJohannes Anderwald <johannes.anderwald@reactos.org>
Mon, 28 Sep 2009 10:38:23 +0000 (10:38 +0000)
committerJohannes Anderwald <johannes.anderwald@reactos.org>
Mon, 28 Sep 2009 10:38:23 +0000 (10:38 +0000)
- The Category member is LPGUID not GUID
- Check if there is a category member

svn path=/trunk/; revision=43201

reactos/drivers/ksfilter/ks/connectivity.c

index 02c36e7..8ce3eb1 100644 (file)
@@ -378,8 +378,11 @@ KsPinPropertyHandler(
                 Irp->IoStatus.Status = STATUS_BUFFER_TOO_SMALL;
                 break;
             }
+            if (Descriptor[Pin->PinId].Category)
+            {
+                RtlMoveMemory(Buffer, Descriptor[Pin->PinId].Category, sizeof(GUID));
+            }
 
-            RtlMoveMemory(Buffer, &Descriptor[Pin->PinId].Category, sizeof(GUID));
             Irp->IoStatus.Status = STATUS_SUCCESS;
             Irp->IoStatus.Information = Size;
             break;