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
90085afe
Commit
90085afe
authored
May 10, 2012
by
Christian Costa
Committed by
Alexandre Julliard
May 10, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmsynth: Display new ref in trace for AddRef and Release.
parent
4a53e89c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
31 deletions
+31
-31
synth.c
dlls/dmsynth/synth.c
+16
-16
synthsink.c
dlls/dmsynth/synthsink.c
+15
-15
No files found.
dlls/dmsynth/synth.c
View file @
90085afe
...
@@ -59,32 +59,32 @@ static HRESULT WINAPI IDirectMusicSynth8Impl_QueryInterface(LPDIRECTMUSICSYNTH8
...
@@ -59,32 +59,32 @@ static HRESULT WINAPI IDirectMusicSynth8Impl_QueryInterface(LPDIRECTMUSICSYNTH8
static
ULONG
WINAPI
IDirectMusicSynth8Impl_AddRef
(
LPDIRECTMUSICSYNTH8
iface
)
static
ULONG
WINAPI
IDirectMusicSynth8Impl_AddRef
(
LPDIRECTMUSICSYNTH8
iface
)
{
{
IDirectMusicSynth8Impl
*
This
=
impl_from_IDirectMusicSynth8
(
iface
);
IDirectMusicSynth8Impl
*
This
=
impl_from_IDirectMusicSynth8
(
iface
);
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
ref
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(ref before=%u)
\n
"
,
This
,
refCount
-
1
);
TRACE
(
"(%p)->(): new ref = %u
\n
"
,
This
,
ref
);
DMSYNTH_LockModule
();
DMSYNTH_LockModule
();
return
refCount
;
return
ref
;
}
}
static
ULONG
WINAPI
IDirectMusicSynth8Impl_Release
(
LPDIRECTMUSICSYNTH8
iface
)
static
ULONG
WINAPI
IDirectMusicSynth8Impl_Release
(
LPDIRECTMUSICSYNTH8
iface
)
{
{
IDirectMusicSynth8Impl
*
This
=
impl_from_IDirectMusicSynth8
(
iface
);
IDirectMusicSynth8Impl
*
This
=
impl_from_IDirectMusicSynth8
(
iface
);
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
ref
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(ref before=%u)
\n
"
,
This
,
refCount
+
1
);
TRACE
(
"(%p)->(): new ref = %u
\n
"
,
This
,
ref
);
if
(
!
refCount
)
{
if
(
!
ref
)
{
if
(
This
->
pLatencyClock
)
if
(
This
->
pLatencyClock
)
IReferenceClock_Release
(
This
->
pLatencyClock
);
IReferenceClock_Release
(
This
->
pLatencyClock
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
}
DMSYNTH_UnlockModule
();
DMSYNTH_UnlockModule
();
return
refCount
;
return
ref
;
}
}
/* IDirectMusicSynth8Impl IDirectMusicSynth part: */
/* IDirectMusicSynth8Impl IDirectMusicSynth part: */
...
...
dlls/dmsynth/synthsink.c
View file @
90085afe
...
@@ -53,32 +53,32 @@ static HRESULT WINAPI IDirectMusicSynthSinkImpl_QueryInterface(LPDIRECTMUSICSYNT
...
@@ -53,32 +53,32 @@ static HRESULT WINAPI IDirectMusicSynthSinkImpl_QueryInterface(LPDIRECTMUSICSYNT
static
ULONG
WINAPI
IDirectMusicSynthSinkImpl_AddRef
(
LPDIRECTMUSICSYNTHSINK
iface
)
static
ULONG
WINAPI
IDirectMusicSynthSinkImpl_AddRef
(
LPDIRECTMUSICSYNTHSINK
iface
)
{
{
IDirectMusicSynthSinkImpl
*
This
=
impl_from_IDirectMusicSynthSink
(
iface
);
IDirectMusicSynthSinkImpl
*
This
=
impl_from_IDirectMusicSynthSink
(
iface
);
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
ref
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(ref before=%u)
\n
"
,
This
,
refCount
-
1
);
TRACE
(
"(%p)->(): new ref = %u
\n
"
,
This
,
ref
);
DMSYNTH_LockModule
();
DMSYNTH_LockModule
();
return
refCount
;
return
ref
;
}
}
static
ULONG
WINAPI
IDirectMusicSynthSinkImpl_Release
(
LPDIRECTMUSICSYNTHSINK
iface
)
static
ULONG
WINAPI
IDirectMusicSynthSinkImpl_Release
(
LPDIRECTMUSICSYNTHSINK
iface
)
{
{
IDirectMusicSynthSinkImpl
*
This
=
impl_from_IDirectMusicSynthSink
(
iface
);
IDirectMusicSynthSinkImpl
*
This
=
impl_from_IDirectMusicSynthSink
(
iface
);
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
ref
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(ref before=%u)
\n
"
,
This
,
refCount
+
1
);
TRACE
(
"(%p)->(): new ref = %u
\n
"
,
This
,
ref
);
if
(
!
refCount
)
{
if
(
!
ref
)
{
if
(
This
->
latency_clock
)
if
(
This
->
latency_clock
)
IReferenceClock_Release
(
This
->
latency_clock
);
IReferenceClock_Release
(
This
->
latency_clock
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
}
DMSYNTH_UnlockModule
();
DMSYNTH_UnlockModule
();
return
refCount
;
return
ref
;
}
}
/* IDirectMusicSynthSinkImpl IDirectMusicSynthSink part: */
/* IDirectMusicSynthSinkImpl IDirectMusicSynthSink part: */
...
...
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