X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=reactos%2Fdrivers%2Fwdm%2Faudio%2Flegacy%2Fwdmaud%2Fcontrol.c;h=f9ae9a323396b2d3b4f3e93e79c6667104ee0d24;hp=fcc66819577cd225cc0368979979d9fff17637ba;hb=3e9107ceecf96beab7f480084c54467119979948;hpb=1f993d692ceedf12ba9eabaf543f24d6ec7e773d diff --git a/reactos/drivers/wdm/audio/legacy/wdmaud/control.c b/reactos/drivers/wdm/audio/legacy/wdmaud/control.c index fcc66819577..f9ae9a32339 100644 --- a/reactos/drivers/wdm/audio/legacy/wdmaud/control.c +++ b/reactos/drivers/wdm/audio/legacy/wdmaud/control.c @@ -166,11 +166,8 @@ WdmAudIoctlClose( } else if (ClientInfo->hPins[Index].Handle == DeviceInfo->hDevice && ClientInfo->hPins[Index].Type == MIXER_DEVICE_TYPE) { - if (ClientInfo->hPins[Index].NotifyEvent) - { - ObDereferenceObject(ClientInfo->hPins[Index].NotifyEvent); - ClientInfo->hPins[Index].NotifyEvent = NULL; - } + DPRINT1("Closing mixer %p\n", DeviceInfo->hDevice); + return WdmAudControlCloseMixer(DeviceObject, Irp, DeviceInfo, ClientInfo, Index); } }