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
31a58298
Commit
31a58298
authored
Nov 01, 2012
by
Christian Costa
Committed by
Alexandre Julliard
Nov 02, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmusic: Display new ref in AddRef and Release.
parent
db390b77
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
15 deletions
+14
-15
clock.c
dlls/dmusic/clock.c
+12
-13
collection.c
dlls/dmusic/collection.c
+2
-2
No files found.
dlls/dmusic/clock.c
View file @
31a58298
...
...
@@ -45,30 +45,29 @@ static HRESULT WINAPI IReferenceClockImpl_QueryInterface(IReferenceClock *iface,
static
ULONG
WINAPI
IReferenceClockImpl_AddRef
(
IReferenceClock
*
iface
)
{
IReferenceClockImpl
*
This
=
impl_from_IReferenceClock
(
iface
);
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
ref
);
IReferenceClockImpl
*
This
=
impl_from_IReferenceClock
(
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
IReferenceClockImpl_Release
(
IReferenceClock
*
iface
)
{
IReferenceClockImpl
*
This
=
impl_from_IReferenceClock
(
iface
);
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
ref
);
IReferenceClockImpl
*
This
=
impl_from_IReferenceClock
(
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
;
}
/* IReferenceClockImpl IReferenceClock part: */
...
...
dlls/dmusic/collection.c
View file @
31a58298
...
...
@@ -80,7 +80,7 @@ static ULONG WINAPI IDirectMusicCollectionImpl_IDirectMusicCollection_AddRef(LPD
IDirectMusicCollectionImpl
*
This
=
impl_from_IDirectMusicCollection
(
iface
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p/%p)->(): new ref = %u
)
\n
"
,
iface
,
This
,
ref
);
TRACE
(
"(%p/%p)->(): new ref = %u
\n
"
,
iface
,
This
,
ref
);
DMUSIC_LockModule
();
...
...
@@ -92,7 +92,7 @@ static ULONG WINAPI IDirectMusicCollectionImpl_IDirectMusicCollection_Release(LP
IDirectMusicCollectionImpl
*
This
=
impl_from_IDirectMusicCollection
(
iface
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p/%p)->(): new ref = %u
)
\n
"
,
iface
,
This
,
ref
);
TRACE
(
"(%p/%p)->(): new ref = %u
\n
"
,
iface
,
This
,
ref
);
if
(
!
ref
)
HeapFree
(
GetProcessHeap
(),
0
,
This
);
...
...
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