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
d46f8e31
Commit
d46f8e31
authored
Sep 17, 2012
by
Christian Costa
Committed by
Alexandre Julliard
Sep 18, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmusic: Display new ref in AddRef and Release methods.
parent
142c527b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
13 deletions
+12
-13
port.c
dlls/dmusic/port.c
+12
-13
No files found.
dlls/dmusic/port.c
View file @
d46f8e31
...
...
@@ -67,30 +67,29 @@ static HRESULT WINAPI IDirectMusicPortImpl_QueryInterface(LPDIRECTMUSICPORT ifac
static
ULONG
WINAPI
IDirectMusicPortImpl_AddRef
(
LPDIRECTMUSICPORT
iface
)
{
IDirectMusicPortImpl
*
This
=
impl_from_IDirectMusicPort
(
iface
);
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
ref
);
IDirectMusicPortImpl
*
This
=
impl_from_IDirectMusicPort
(
iface
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(ref before=%u)
\n
"
,
This
,
refCount
-
1
);
TRACE
(
"(%p)->(): new ref = %u
\n
"
,
This
,
ref
);
DMUSIC_LockModule
();
DMUSIC_LockModule
();
return
refCount
;
return
ref
;
}
static
ULONG
WINAPI
IDirectMusicPortImpl_Release
(
LPDIRECTMUSICPORT
iface
)
{
IDirectMusicPortImpl
*
This
=
impl_from_IDirectMusicPort
(
iface
);
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
ref
);
IDirectMusicPortImpl
*
This
=
impl_from_IDirectMusicPort
(
iface
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(ref before=%u)
\n
"
,
This
,
refCount
+
1
);
TRACE
(
"(%p)->(): new ref = %u
\n
"
,
This
,
ref
);
if
(
!
refCount
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
if
(
!
ref
)
HeapFree
(
GetProcessHeap
(),
0
,
This
);
DMUSIC_UnlockModule
();
DMUSIC_UnlockModule
();
return
refCount
;
return
ref
;
}
/* IDirectMusicPortImpl IDirectMusicPort 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