Jan Zerebecki : mciavi32: Add DebugInfo to critical sections.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Mar 12 08:28:38 CDT 2007


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

Author: Jan Zerebecki <jan.wine at zerebecki.de>
Date:   Sat Mar 10 22:09:08 2007 +0100

mciavi32: Add DebugInfo to critical sections.

---

 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..a1380f6 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-cvs mailing list