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
5ae4238c
Commit
5ae4238c
authored
May 11, 2012
by
Christian Costa
Committed by
Alexandre Julliard
May 11, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmusic: Display new ref in trace for AddRef and Release for IDirectMusicInstrument.
parent
1501d3a4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
14 deletions
+13
-14
instrument.c
dlls/dmusic/instrument.c
+13
-14
No files found.
dlls/dmusic/instrument.c
View file @
5ae4238c
...
@@ -57,30 +57,29 @@ static HRESULT WINAPI IDirectMusicInstrumentImpl_QueryInterface(LPDIRECTMUSICINS
...
@@ -57,30 +57,29 @@ static HRESULT WINAPI IDirectMusicInstrumentImpl_QueryInterface(LPDIRECTMUSICINS
static
ULONG
WINAPI
IDirectMusicInstrumentImpl_AddRef
(
LPDIRECTMUSICINSTRUMENT
iface
)
static
ULONG
WINAPI
IDirectMusicInstrumentImpl_AddRef
(
LPDIRECTMUSICINSTRUMENT
iface
)
{
{
IDirectMusicInstrumentImpl
*
This
=
impl_from_IDirectMusicInstrument
(
iface
);
IDirectMusicInstrumentImpl
*
This
=
impl_from_IDirectMusicInstrument
(
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
"
,
iface
,
ref
);
DMUSIC_LockModule
();
DMUSIC_LockModule
();
return
refCount
;
return
ref
;
}
}
static
ULONG
WINAPI
IDirectMusicInstrumentImpl_Release
(
LPDIRECTMUSICINSTRUMENT
iface
)
static
ULONG
WINAPI
IDirectMusicInstrumentImpl_Release
(
LPDIRECTMUSICINSTRUMENT
iface
)
{
{
IDirectMusicInstrumentImpl
*
This
=
impl_from_IDirectMusicInstrument
(
iface
);
IDirectMusicInstrumentImpl
*
This
=
impl_from_IDirectMusicInstrument
(
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
"
,
iface
,
ref
);
if
(
!
refCount
)
{
if
(
!
ref
)
HeapFree
(
GetProcessHeap
(),
0
,
This
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
DMUSIC_UnlockModule
();
DMUSIC_UnlockModule
();
return
refCount
;
return
ref
;
}
}
/* IDirectMusicInstrumentImpl IDirectMusicInstrument part: */
/* IDirectMusicInstrumentImpl IDirectMusicInstrument 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