mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 09:06:22 +00:00
- Implement IPortDMus_fnNewRegistryKey
svn path=/trunk/; revision=42648
This commit is contained in:
parent
538f32f9ba
commit
3f99bec9f5
1 changed files with 21 additions and 7 deletions
|
@ -219,6 +219,12 @@ IPortDMus_fnInit(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Initialize port object */
|
||||||
|
This->pMiniport = Miniport;
|
||||||
|
This->pMiniportMidi = MidiMiniport;
|
||||||
|
This->pDeviceObject = DeviceObject;
|
||||||
|
This->bInitialized = TRUE;
|
||||||
|
|
||||||
if (Miniport)
|
if (Miniport)
|
||||||
{
|
{
|
||||||
/* initialize IMiniportDMus */
|
/* initialize IMiniportDMus */
|
||||||
|
@ -226,6 +232,7 @@ IPortDMus_fnInit(
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
DPRINT("IMiniportDMus_Init failed with %x\n", Status);
|
DPRINT("IMiniportDMus_Init failed with %x\n", Status);
|
||||||
|
This->bInitialized = FALSE;
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -235,6 +242,7 @@ IPortDMus_fnInit(
|
||||||
{
|
{
|
||||||
DPRINT1("failed to get description\n");
|
DPRINT1("failed to get description\n");
|
||||||
Miniport->lpVtbl->Release(Miniport);
|
Miniport->lpVtbl->Release(Miniport);
|
||||||
|
This->bInitialized = FALSE;
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -249,6 +257,7 @@ IPortDMus_fnInit(
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
DPRINT("IMiniportMidi_Init failed with %x\n", Status);
|
DPRINT("IMiniportMidi_Init failed with %x\n", Status);
|
||||||
|
This->bInitialized = FALSE;
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -258,6 +267,7 @@ IPortDMus_fnInit(
|
||||||
{
|
{
|
||||||
DPRINT1("failed to get description\n");
|
DPRINT1("failed to get description\n");
|
||||||
MidiMiniport->lpVtbl->Release(MidiMiniport);
|
MidiMiniport->lpVtbl->Release(MidiMiniport);
|
||||||
|
This->bInitialized = FALSE;
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -290,6 +300,7 @@ IPortDMus_fnInit(
|
||||||
else
|
else
|
||||||
MidiMiniport->lpVtbl->Release(MidiMiniport);
|
MidiMiniport->lpVtbl->Release(MidiMiniport);
|
||||||
|
|
||||||
|
This->bInitialized = FALSE;
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -299,12 +310,6 @@ IPortDMus_fnInit(
|
||||||
This->ServiceGroup = ServiceGroup;
|
This->ServiceGroup = ServiceGroup;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Initialize port object */
|
|
||||||
This->pMiniport = Miniport;
|
|
||||||
This->pMiniportMidi = MidiMiniport;
|
|
||||||
This->pDeviceObject = DeviceObject;
|
|
||||||
This->bInitialized = TRUE;
|
|
||||||
|
|
||||||
/* check if it supports IPinCount interface */
|
/* check if it supports IPinCount interface */
|
||||||
Status = UnknownMiniport->lpVtbl->QueryInterface(UnknownMiniport, &IID_IPinCount, (PVOID*)&PinCount);
|
Status = UnknownMiniport->lpVtbl->QueryInterface(UnknownMiniport, &IID_IPinCount, (PVOID*)&PinCount);
|
||||||
if (NT_SUCCESS(Status))
|
if (NT_SUCCESS(Status))
|
||||||
|
@ -346,7 +351,16 @@ IPortDMus_fnNewRegistryKey(
|
||||||
DPRINT("IPortDMus_fnNewRegistryKey called w/o initialized\n");
|
DPRINT("IPortDMus_fnNewRegistryKey called w/o initialized\n");
|
||||||
return STATUS_UNSUCCESSFUL;
|
return STATUS_UNSUCCESSFUL;
|
||||||
}
|
}
|
||||||
return STATUS_UNSUCCESSFUL;
|
|
||||||
|
return PcNewRegistryKey(OutRegistryKey,
|
||||||
|
OuterUnknown,
|
||||||
|
RegistryKeyType,
|
||||||
|
DesiredAccess,
|
||||||
|
This->pDeviceObject,
|
||||||
|
NULL,//FIXME
|
||||||
|
ObjectAttributes,
|
||||||
|
CreateOptions,
|
||||||
|
Disposition);
|
||||||
}
|
}
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue