mirror of
https://github.com/reactos/reactos.git
synced 2024-09-10 12:54:51 +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
|
@ -164,7 +164,7 @@ IPortDMus_fnInit(
|
||||||
IMiniportDMus * Miniport = NULL;
|
IMiniportDMus * Miniport = NULL;
|
||||||
IMiniportMidi * MidiMiniport = NULL;
|
IMiniportMidi * MidiMiniport = NULL;
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
PSERVICEGROUP ServiceGroup;
|
PSERVICEGROUP ServiceGroup = NULL;
|
||||||
PPINCOUNT PinCount;
|
PPINCOUNT PinCount;
|
||||||
PPOWERNOTIFY PowerNotify;
|
PPOWERNOTIFY PowerNotify;
|
||||||
IPortDMusImpl * This = (IPortDMusImpl*)iface;
|
IPortDMusImpl * This = (IPortDMusImpl*)iface;
|
||||||
|
@ -263,8 +263,11 @@ IPortDMus_fnInit(
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
ASSERT(This->ServiceGroup);
|
if (This->ServiceGroup == NULL && ServiceGroup)
|
||||||
ASSERT(ServiceGroup == This->ServiceGroup);
|
{
|
||||||
|
/* register service group */
|
||||||
|
This->ServiceGroup = ServiceGroup;
|
||||||
|
}
|
||||||
|
|
||||||
/* Initialize port object */
|
/* Initialize port object */
|
||||||
This->pMiniport = Miniport;
|
This->pMiniport = Miniport;
|
||||||
|
|
Loading…
Reference in a new issue