strmbase: Unset Spare[0] before deleting non-static critical sections.

Francois Gouget fgouget at codeweavers.com
Mon Nov 14 04:32:32 CST 2011


---
 dlls/strmbase/outputqueue.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/strmbase/outputqueue.c b/dlls/strmbase/outputqueue.c
index 88a49f8..e931923 100644
--- a/dlls/strmbase/outputqueue.c
+++ b/dlls/strmbase/outputqueue.c
@@ -127,6 +127,7 @@ HRESULT WINAPI OutputQueue_Destroy(OutputQueue *pOutputQueue)
     SetEvent(pOutputQueue->hProcessQueue);
     LeaveCriticalSection(&pOutputQueue->csQueue);
 
+    pOutputQueue->csQueue.DebugInfo->Spare[0] = 0;
     DeleteCriticalSection(&pOutputQueue->csQueue);
     CloseHandle(pOutputQueue->hProcessQueue);
 
-- 
1.7.7.1



More information about the wine-patches mailing list