mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 06:15:26 +00:00
- Store servicegroup obtained from IMiniportDMus / IMiniportMidi Init function when IPortDMus / IPortMidi RegisterServiceGroup is not called
svn path=/trunk/; revision=41353
This commit is contained in:
parent
fd1851d16a
commit
0ba38df7fa
1 changed files with 6 additions and 3 deletions
|
@ -164,7 +164,7 @@ IPortDMus_fnInit(
|
|||
IMiniportDMus * Miniport = NULL;
|
||||
IMiniportMidi * MidiMiniport = NULL;
|
||||
NTSTATUS Status;
|
||||
PSERVICEGROUP ServiceGroup;
|
||||
PSERVICEGROUP ServiceGroup = NULL;
|
||||
PPINCOUNT PinCount;
|
||||
PPOWERNOTIFY PowerNotify;
|
||||
IPortDMusImpl * This = (IPortDMusImpl*)iface;
|
||||
|
@ -263,8 +263,11 @@ IPortDMus_fnInit(
|
|||
return Status;
|
||||
}
|
||||
|
||||
ASSERT(This->ServiceGroup);
|
||||
ASSERT(ServiceGroup == This->ServiceGroup);
|
||||
if (This->ServiceGroup == NULL && ServiceGroup)
|
||||
{
|
||||
/* register service group */
|
||||
This->ServiceGroup = ServiceGroup;
|
||||
}
|
||||
|
||||
/* Initialize port object */
|
||||
This->pMiniport = Miniport;
|
||||
|
|
Loading…
Reference in a new issue