Commit 4db0d0da authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

mcicda: Give a name to the critical sections.

parent f2043352
...@@ -179,6 +179,7 @@ static DWORD MCICDA_drvOpen(LPCWSTR str, LPMCI_OPEN_DRIVER_PARMSW modp) ...@@ -179,6 +179,7 @@ static DWORD MCICDA_drvOpen(LPCWSTR str, LPMCI_OPEN_DRIVER_PARMSW modp)
modp->wCustomCommandTable = MCI_NO_COMMAND_TABLE; modp->wCustomCommandTable = MCI_NO_COMMAND_TABLE;
modp->wType = MCI_DEVTYPE_CD_AUDIO; modp->wType = MCI_DEVTYPE_CD_AUDIO;
InitializeCriticalSection(&wmcda->cs); InitializeCriticalSection(&wmcda->cs);
wmcda->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": WINE_MCICDAUDIO.cs");
return modp->wDeviceID; return modp->wDeviceID;
} }
...@@ -190,6 +191,7 @@ static DWORD MCICDA_drvClose(DWORD dwDevID) ...@@ -190,6 +191,7 @@ static DWORD MCICDA_drvClose(DWORD dwDevID)
WINE_MCICDAUDIO* wmcda = (WINE_MCICDAUDIO*)mciGetDriverData(dwDevID); WINE_MCICDAUDIO* wmcda = (WINE_MCICDAUDIO*)mciGetDriverData(dwDevID);
if (wmcda) { if (wmcda) {
wmcda->cs.DebugInfo->Spare[0] = 0;
DeleteCriticalSection(&wmcda->cs); DeleteCriticalSection(&wmcda->cs);
HeapFree(GetProcessHeap(), 0, wmcda); HeapFree(GetProcessHeap(), 0, wmcda);
mciSetDriverData(dwDevID, 0); mciSetDriverData(dwDevID, 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment