Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
8ba03f8a
Commit
8ba03f8a
authored
Jul 19, 2016
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 19, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmsynth: Lock/unlock the module only on creation/desctruction.
Signed-off-by:
Michael Stefaniuc
<
mstefani@redhat.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6f440bba
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
8 deletions
+4
-8
synth.c
dlls/dmsynth/synth.c
+3
-4
synthsink.c
dlls/dmsynth/synthsink.c
+1
-4
No files found.
dlls/dmsynth/synth.c
View file @
8ba03f8a
...
...
@@ -72,8 +72,6 @@ static ULONG WINAPI IDirectMusicSynth8Impl_AddRef(LPDIRECTMUSICSYNTH8 iface)
TRACE
(
"(%p)->(): new ref = %u
\n
"
,
This
,
ref
);
DMSYNTH_LockModule
();
return
ref
;
}
...
...
@@ -88,10 +86,9 @@ static ULONG WINAPI IDirectMusicSynth8Impl_Release(LPDIRECTMUSICSYNTH8 iface)
if
(
This
->
pLatencyClock
)
IReferenceClock_Release
(
This
->
pLatencyClock
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
DMSYNTH_UnlockModule
();
}
DMSYNTH_UnlockModule
();
return
ref
;
}
...
...
@@ -605,7 +602,9 @@ HRESULT WINAPI DMUSIC_CreateDirectMusicSynthImpl(REFIID riid, void **ppobj)
obj
->
pCaps
.
dwEffectFlags
=
DMUS_EFFECT_REVERB
;
strcpyW
(
obj
->
pCaps
.
wszDescription
,
descrW
);
DMSYNTH_LockModule
();
hr
=
IDirectMusicSynth8_QueryInterface
(
&
obj
->
IDirectMusicSynth8_iface
,
riid
,
ppobj
);
IDirectMusicSynth8_Release
(
&
obj
->
IDirectMusicSynth8_iface
);
return
hr
;
}
dlls/dmsynth/synthsink.c
View file @
8ba03f8a
...
...
@@ -67,8 +67,6 @@ static ULONG WINAPI IDirectMusicSynthSinkImpl_AddRef(LPDIRECTMUSICSYNTHSINK ifac
TRACE
(
"(%p)->(): new ref = %u
\n
"
,
This
,
ref
);
DMSYNTH_LockModule
();
return
ref
;
}
...
...
@@ -83,10 +81,9 @@ static ULONG WINAPI IDirectMusicSynthSinkImpl_Release(LPDIRECTMUSICSYNTHSINK ifa
if
(
This
->
latency_clock
)
IReferenceClock_Release
(
This
->
latency_clock
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
DMSYNTH_UnlockModule
();
}
DMSYNTH_UnlockModule
();
return
ref
;
}
...
...
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