Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
4db0d0da
Commit
4db0d0da
authored
Nov 14, 2011
by
Francois Gouget
Committed by
Alexandre Julliard
Nov 14, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mcicda: Give a name to the critical sections.
parent
f2043352
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
mcicda.c
dlls/mcicda/mcicda.c
+2
-0
No files found.
dlls/mcicda/mcicda.c
View file @
4db0d0da
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment