mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
[PORTCLS]
- Add sanity check svn path=/trunk/; revision=47783
This commit is contained in:
parent
d6f80bd4d4
commit
3072b5dec6
1 changed files with 6 additions and 2 deletions
|
@ -320,11 +320,15 @@ PcHandleNodePropertyRequest(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// sanity check
|
||||||
|
PC_ASSERT(SubDeviceDescriptor->UnknownMiniport);
|
||||||
|
|
||||||
// allocate a property request
|
// allocate a property request
|
||||||
PropertyRequest = (PPCPROPERTY_REQUEST)AllocateItem(NonPagedPool, sizeof(PCPROPERTY_REQUEST), TAG_PORTCLASS);
|
PropertyRequest = (PPCPROPERTY_REQUEST)AllocateItem(NonPagedPool, sizeof(PCPROPERTY_REQUEST), TAG_PORTCLASS);
|
||||||
if (!PropertyRequest)
|
if (!PropertyRequest)
|
||||||
return STATUS_INSUFFICIENT_RESOURCES;
|
return STATUS_INSUFFICIENT_RESOURCES;
|
||||||
|
|
||||||
|
// initialize property request
|
||||||
PropertyRequest->MajorTarget = SubDeviceDescriptor->UnknownMiniport;
|
PropertyRequest->MajorTarget = SubDeviceDescriptor->UnknownMiniport;
|
||||||
PropertyRequest->MinorTarget = SubDeviceDescriptor->UnknownStream;
|
PropertyRequest->MinorTarget = SubDeviceDescriptor->UnknownStream;
|
||||||
PropertyRequest->Irp = Irp;
|
PropertyRequest->Irp = Irp;
|
||||||
|
@ -546,7 +550,7 @@ PcCreateSubdeviceDescriptor(
|
||||||
/// FIXME
|
/// FIXME
|
||||||
/// handle driver properties
|
/// handle driver properties
|
||||||
|
|
||||||
//DumpFilterDescriptor(FilterDescription);
|
DumpFilterDescriptor(FilterDescription);
|
||||||
|
|
||||||
Descriptor->FilterPropertySet = (PKSPROPERTY_SET)AllocateItem(NonPagedPool, sizeof(KSPROPERTY_SET) * FilterPropertiesCount, TAG_PORTCLASS);
|
Descriptor->FilterPropertySet = (PKSPROPERTY_SET)AllocateItem(NonPagedPool, sizeof(KSPROPERTY_SET) * FilterPropertiesCount, TAG_PORTCLASS);
|
||||||
if (! Descriptor->FilterPropertySet)
|
if (! Descriptor->FilterPropertySet)
|
||||||
|
@ -611,7 +615,7 @@ PcCreateSubdeviceDescriptor(
|
||||||
Descriptor->Factory.PinDescriptorSize = sizeof(KSPIN_DESCRIPTOR);
|
Descriptor->Factory.PinDescriptorSize = sizeof(KSPIN_DESCRIPTOR);
|
||||||
|
|
||||||
SrcDescriptor = (PPCPIN_DESCRIPTOR)FilterDescription->Pins;
|
SrcDescriptor = (PPCPIN_DESCRIPTOR)FilterDescription->Pins;
|
||||||
DPRINT("Size %u Expected %u Ex Size %u\n", FilterDescription->PinSize, sizeof(KSPIN_DESCRIPTOR), sizeof(KSPIN_DESCRIPTOR_EX));
|
DPRINT("Size %u Expected %u\n", FilterDescription->PinSize, sizeof(PCPIN_DESCRIPTOR));
|
||||||
|
|
||||||
// copy pin factories
|
// copy pin factories
|
||||||
for(Index = 0; Index < FilterDescription->PinCount; Index++)
|
for(Index = 0; Index < FilterDescription->PinCount; Index++)
|
||||||
|
|
Loading…
Reference in a new issue