mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-29 19:26:33 +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:
@@ -337,6 +337,13 @@ IPortWaveCyclic_fnInit(
|
||||
This->bInitialized = TRUE;
|
||||
This->pResourceList = ResourceList;
|
||||
|
||||
|
||||
if (ResourceList)
|
||||
{
|
||||
/* increment reference on resource list */
|
||||
ResourceList->lpVtbl->AddRef(ResourceList);
|
||||
}
|
||||
|
||||
Status = Miniport->lpVtbl->Init(Miniport, UnknownAdapter, ResourceList, iface);
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
@@ -397,10 +404,6 @@ IPortWaveCyclic_fnInit(
|
||||
This->pPowerNotify = PowerNotify;
|
||||
}
|
||||
|
||||
/* increment reference on resource list */
|
||||
ResourceList->lpVtbl->AddRef(ResourceList);
|
||||
|
||||
|
||||
DPRINT("IPortWaveCyclic successfully initialized\n");
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user