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
76a778be
Commit
76a778be
authored
Apr 24, 2012
by
Christian Costa
Committed by
Alexandre Julliard
Apr 25, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmusic: Display new ref in IDirectMusicBufferImpl_AddRef and IDirectMusicBufferImpl_Release.
parent
6800851f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
buffer.c
dlls/dmusic/buffer.c
+8
-8
No files found.
dlls/dmusic/buffer.c
View file @
76a778be
...
...
@@ -41,33 +41,33 @@ static HRESULT WINAPI IDirectMusicBufferImpl_QueryInterface(LPDIRECTMUSICBUFFER
return
E_NOINTERFACE
;
}
static
ULONG
WINAPI
IDirectMusicBufferImpl_AddRef
(
LPDIRECTMUSICBUFFER
iface
)
static
ULONG
WINAPI
IDirectMusicBufferImpl_AddRef
(
LPDIRECTMUSICBUFFER
iface
)
{
IDirectMusicBufferImpl
*
This
=
impl_from_IDirectMusicBuffer
(
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
();
return
refCount
;
return
ref
;
}
static
ULONG
WINAPI
IDirectMusicBufferImpl_Release
(
LPDIRECTMUSICBUFFER
iface
)
{
IDirectMusicBufferImpl
*
This
=
impl_from_IDirectMusicBuffer
(
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
->
data
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
DMUSIC_UnlockModule
();
return
refCount
;
return
ref
;
}
/* IDirectMusicBufferImpl IDirectMusicBuffer 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