mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 12:23:25 +00:00
[KS]
The "Add" routine is optional in the KSDEVICE_DISPATCH structure. KsDevice.Descriptor should be initialized even if there is no device dispatch. svn path=/trunk/; revision=72661
This commit is contained in:
@@ -782,15 +782,14 @@ KsInitializeDevice(
|
||||
}
|
||||
}
|
||||
|
||||
/* does the driver pnp notification */
|
||||
if (Descriptor->Dispatch)
|
||||
/* does the driver care about the add device */
|
||||
if (Descriptor->Dispatch && Descriptor->Dispatch->Add)
|
||||
{
|
||||
/* does the driver care about the add device */
|
||||
Status = Descriptor->Dispatch->Add(&Header->KsDevice);
|
||||
|
||||
DPRINT("Driver: AddHandler Status %x\n", Status);
|
||||
Header->KsDevice.Descriptor = Descriptor;
|
||||
}
|
||||
|
||||
Header->KsDevice.Descriptor = Descriptor;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user