mciavi32: Add DebugInfo to critical sections.

Jan Zerebecki jan.wine at zerebecki.de
Sat Mar 10 15:09:08 CST 2007


---
If this patch is rejected from inclusion, please tell me why, as
I would have to ask anyway.

 dlls/mciavi32/mciavi.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/mciavi32/mciavi.c b/dlls/mciavi32/mciavi.c
index 9785dbe..c484e67 100644
--- a/dlls/mciavi32/mciavi.c
+++ b/dlls/mciavi32/mciavi.c
@@ -84,6 +84,7 @@ static	DWORD	MCIAVI_drvOpen(LPCWSTR str, LPMCI_OPEN_DRIVER_PARMSW modp)
 	return 0;
 
     InitializeCriticalSection(&wma->cs);
+    wma->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": WINE_MCIAVI*->cs");
     wma->ack_event = CreateEventW(NULL, FALSE, FALSE, NULL);
     wma->hStopEvent = CreateEventW(NULL, FALSE, FALSE, NULL);
     wma->wDevID = modp->wDeviceID;
@@ -121,6 +122,7 @@ static	DWORD	MCIAVI_drvClose(DWORD dwDevID)
         CloseHandle(wma->hStopEvent);
 
         LeaveCriticalSection(&wma->cs);
+        wma->cs.DebugInfo->Spare[0] = 0;
         DeleteCriticalSection(&wma->cs);
 
 	HeapFree(GetProcessHeap(), 0, wma);



More information about the wine-patches mailing list