winmm: Unset DebugInfo->Spare[0] before destroying critical sections.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
3179dd7bb1
commit
4dcb219339
|
@ -206,12 +206,14 @@ void WINMM_DeleteWaveform(void)
|
|||
WINMM_Device *device = mmdevice->devices[j];
|
||||
if(device->handle)
|
||||
CloseHandle(device->handle);
|
||||
device->lock.DebugInfo->Spare[0] = 0;
|
||||
DeleteCriticalSection(&device->lock);
|
||||
}
|
||||
|
||||
if(mmdevice->volume)
|
||||
ISimpleAudioVolume_Release(mmdevice->volume);
|
||||
CoTaskMemFree(mmdevice->dev_id);
|
||||
mmdevice->lock.DebugInfo->Spare[0] = 0;
|
||||
DeleteCriticalSection(&mmdevice->lock);
|
||||
}
|
||||
|
||||
|
@ -222,12 +224,14 @@ void WINMM_DeleteWaveform(void)
|
|||
WINMM_Device *device = mmdevice->devices[j];
|
||||
if(device->handle)
|
||||
CloseHandle(device->handle);
|
||||
device->lock.DebugInfo->Spare[0] = 0;
|
||||
DeleteCriticalSection(&device->lock);
|
||||
}
|
||||
|
||||
if(mmdevice->volume)
|
||||
ISimpleAudioVolume_Release(mmdevice->volume);
|
||||
CoTaskMemFree(mmdevice->dev_id);
|
||||
mmdevice->lock.DebugInfo->Spare[0] = 0;
|
||||
DeleteCriticalSection(&mmdevice->lock);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue