Commit 4dcb2193 authored by Sebastian Lackner's avatar Sebastian Lackner Committed by Alexandre Julliard

winmm: Unset DebugInfo->Spare[0] before destroying critical sections.

parent 3179dd7b
...@@ -206,12 +206,14 @@ void WINMM_DeleteWaveform(void) ...@@ -206,12 +206,14 @@ void WINMM_DeleteWaveform(void)
WINMM_Device *device = mmdevice->devices[j]; WINMM_Device *device = mmdevice->devices[j];
if(device->handle) if(device->handle)
CloseHandle(device->handle); CloseHandle(device->handle);
device->lock.DebugInfo->Spare[0] = 0;
DeleteCriticalSection(&device->lock); DeleteCriticalSection(&device->lock);
} }
if(mmdevice->volume) if(mmdevice->volume)
ISimpleAudioVolume_Release(mmdevice->volume); ISimpleAudioVolume_Release(mmdevice->volume);
CoTaskMemFree(mmdevice->dev_id); CoTaskMemFree(mmdevice->dev_id);
mmdevice->lock.DebugInfo->Spare[0] = 0;
DeleteCriticalSection(&mmdevice->lock); DeleteCriticalSection(&mmdevice->lock);
} }
...@@ -222,12 +224,14 @@ void WINMM_DeleteWaveform(void) ...@@ -222,12 +224,14 @@ void WINMM_DeleteWaveform(void)
WINMM_Device *device = mmdevice->devices[j]; WINMM_Device *device = mmdevice->devices[j];
if(device->handle) if(device->handle)
CloseHandle(device->handle); CloseHandle(device->handle);
device->lock.DebugInfo->Spare[0] = 0;
DeleteCriticalSection(&device->lock); DeleteCriticalSection(&device->lock);
} }
if(mmdevice->volume) if(mmdevice->volume)
ISimpleAudioVolume_Release(mmdevice->volume); ISimpleAudioVolume_Release(mmdevice->volume);
CoTaskMemFree(mmdevice->dev_id); CoTaskMemFree(mmdevice->dev_id);
mmdevice->lock.DebugInfo->Spare[0] = 0;
DeleteCriticalSection(&mmdevice->lock); DeleteCriticalSection(&mmdevice->lock);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment