winealsa.drv: Don't unset Spare[0] when deleting static critical sections.
Francois Gouget
fgouget at codeweavers.com
Tue Nov 15 07:38:50 CST 2011
---
Unsetting Spare[0] would cause DeleteCriticalSection() to try to free
the DebugInfo structure which is not in the heap.
dlls/winealsa.drv/mmdevdrv.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/dlls/winealsa.drv/mmdevdrv.c b/dlls/winealsa.drv/mmdevdrv.c
index bc1ca94..3cebd4f 100644
--- a/dlls/winealsa.drv/mmdevdrv.c
+++ b/dlls/winealsa.drv/mmdevdrv.c
@@ -228,7 +228,6 @@ BOOL WINAPI DllMain(HINSTANCE dll, DWORD reason, void *reserved)
break;
case DLL_PROCESS_DETACH:
- g_sessions_lock.DebugInfo->Spare[0] = 0;
DeleteCriticalSection(&g_sessions_lock);
break;
}
--
1.7.7.1
More information about the wine-patches
mailing list