mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 23:05:41 +00:00
- Increment reference count only if resource list was passed
- May fix A.8738-4C svn path=/trunk/; revision=42761
This commit is contained in:
parent
dbc071c121
commit
f886c8a5b0
1 changed files with 7 additions and 4 deletions
|
@ -337,6 +337,13 @@ IPortWaveCyclic_fnInit(
|
||||||
This->bInitialized = TRUE;
|
This->bInitialized = TRUE;
|
||||||
This->pResourceList = ResourceList;
|
This->pResourceList = ResourceList;
|
||||||
|
|
||||||
|
|
||||||
|
if (ResourceList)
|
||||||
|
{
|
||||||
|
/* increment reference on resource list */
|
||||||
|
ResourceList->lpVtbl->AddRef(ResourceList);
|
||||||
|
}
|
||||||
|
|
||||||
Status = Miniport->lpVtbl->Init(Miniport, UnknownAdapter, ResourceList, iface);
|
Status = Miniport->lpVtbl->Init(Miniport, UnknownAdapter, ResourceList, iface);
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
|
@ -397,10 +404,6 @@ IPortWaveCyclic_fnInit(
|
||||||
This->pPowerNotify = PowerNotify;
|
This->pPowerNotify = PowerNotify;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* increment reference on resource list */
|
|
||||||
ResourceList->lpVtbl->AddRef(ResourceList);
|
|
||||||
|
|
||||||
|
|
||||||
DPRINT("IPortWaveCyclic successfully initialized\n");
|
DPRINT("IPortWaveCyclic successfully initialized\n");
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue