- 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:
Johannes Anderwald 2009-06-08 22:02:46 +00:00
parent fd1851d16a
commit 0ba38df7fa

View file

@ -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;