mirror of
https://github.com/reactos/reactos.git
synced 2025-07-04 17:31:22 +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:
parent
4fa77bfbc3
commit
c6f8d6fe2c
1 changed files with 4 additions and 5 deletions
|
@ -782,15 +782,14 @@ KsInitializeDevice(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* does the driver pnp notification */
|
|
||||||
if (Descriptor->Dispatch)
|
|
||||||
{
|
|
||||||
/* does the driver care about the add device */
|
/* does the driver care about the add device */
|
||||||
|
if (Descriptor->Dispatch && Descriptor->Dispatch->Add)
|
||||||
|
{
|
||||||
Status = Descriptor->Dispatch->Add(&Header->KsDevice);
|
Status = Descriptor->Dispatch->Add(&Header->KsDevice);
|
||||||
|
|
||||||
DPRINT("Driver: AddHandler Status %x\n", Status);
|
DPRINT("Driver: AddHandler Status %x\n", Status);
|
||||||
Header->KsDevice.Descriptor = Descriptor;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Header->KsDevice.Descriptor = Descriptor;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue