- Fix 2 bugs:

- The Category member is LPGUID not GUID
- Check if there is a category member

svn path=/trunk/; revision=43201
This commit is contained in:
Johannes Anderwald 2009-09-28 10:38:23 +00:00
parent 6dbd846a42
commit eaf6203af2

View 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;