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

Alexandre Julliard julliard at wine.codeweavers.com
Fri Feb 12 09:47:44 CST 2016


Module: wine
Branch: master
Commit: 4dcb21933981a196830b3ce63cd0b4dfe3ff6211
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=4dcb21933981a196830b3ce63cd0b4dfe3ff6211

Author: Sebastian Lackner <sebastian at fds-team.de>
Date:   Fri Feb 12 06:31:55 2016 +0100

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

Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/winmm/waveform.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dlls/winmm/waveform.c b/dlls/winmm/waveform.c
index a4917a2..2d8b838 100644
--- a/dlls/winmm/waveform.c
+++ b/dlls/winmm/waveform.c
@@ -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);
     }
 




More information about the wine-cvs mailing list