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
7c78cf2d
Commit
7c78cf2d
authored
May 24, 2012
by
Christian Costa
Committed by
Alexandre Julliard
May 24, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmusic: Display new ref in trace for AddRef and Release for direct music object.
parent
b8a50472
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
16 deletions
+18
-16
dmusic.c
dlls/dmusic/dmusic.c
+18
-16
No files found.
dlls/dmusic/dmusic.c
View file @
7c78cf2d
/* IDirectMusic8 Implementation
/*
* IDirectMusic8 Implementation
*
* Copyright (C) 2003-2004 Rok Mandeljc
* Copyright (C) 2012 Christian Costa
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -49,31 +51,31 @@ static HRESULT WINAPI IDirectMusic8Impl_QueryInterface(LPDIRECTMUSIC8 iface, REF
static
ULONG
WINAPI
IDirectMusic8Impl_AddRef
(
LPDIRECTMUSIC8
iface
)
{
IDirectMusic8Impl
*
This
=
impl_from_IDirectMusic8
(
iface
);
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
ref
);
IDirectMusic8Impl
*
This
=
impl_from_IDirectMusic8
(
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
IDirectMusic8Impl_Release
(
LPDIRECTMUSIC8
iface
)
{
IDirectMusic8Impl
*
This
=
impl_from_IDirectMusic8
(
iface
);
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
ref
);
IDirectMusic8Impl
*
This
=
impl_from_IDirectMusic8
(
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
->
ppPorts
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
if
(
!
ref
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
->
ppPorts
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
DMUSIC_UnlockModule
();
return
refCount
;
DMUSIC_UnlockModule
();
return
ref
;
}
/* IDirectMusic8Impl IDirectMusic 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