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
3da8524b
Commit
3da8524b
authored
Jan 11, 2005
by
Paul Vriens
Committed by
Alexandre Julliard
Jan 11, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- use Interlocked* functions in AddRef and Release.
- store the result of the Interlocked functions and use only this.
parent
bef13366
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
140 additions
and
92 deletions
+140
-92
audiopath.c
dlls/dmime/audiopath.c
+7
-4
dmime_main.c
dlls/dmime/dmime_main.c
+28
-28
graph.c
dlls/dmime/graph.c
+7
-4
lyricstrack.c
dlls/dmime/lyricstrack.c
+7
-4
markertrack.c
dlls/dmime/markertrack.c
+7
-4
paramcontroltrack.c
dlls/dmime/paramcontroltrack.c
+7
-4
patterntrack.c
dlls/dmime/patterntrack.c
+7
-4
performance.c
dlls/dmime/performance.c
+7
-4
segment.c
dlls/dmime/segment.c
+7
-4
segmentstate.c
dlls/dmime/segmentstate.c
+7
-4
segtriggertrack.c
dlls/dmime/segtriggertrack.c
+7
-4
seqtrack.c
dlls/dmime/seqtrack.c
+7
-4
sysextrack.c
dlls/dmime/sysextrack.c
+7
-4
tempotrack.c
dlls/dmime/tempotrack.c
+7
-4
timesigtrack.c
dlls/dmime/timesigtrack.c
+7
-4
tool.c
dlls/dmime/tool.c
+7
-4
wavetrack.c
dlls/dmime/wavetrack.c
+7
-4
No files found.
dlls/dmime/audiopath.c
View file @
3da8524b
...
...
@@ -54,14 +54,17 @@ HRESULT WINAPI IDirectMusicAudioPathImpl_IUnknown_QueryInterface (LPUNKNOWN ifac
ULONG
WINAPI
IDirectMusicAudioPathImpl_IUnknown_AddRef
(
LPUNKNOWN
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicAudioPathImpl
,
UnknownVtbl
,
iface
);
TRACE
(
"(%p): AddRef from %ld
\n
"
,
This
,
This
->
ref
);
return
++
(
This
->
ref
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p): AddRef from %ld
\n
"
,
This
,
ref
-
1
);
return
ref
;
}
ULONG
WINAPI
IDirectMusicAudioPathImpl_IUnknown_Release
(
LPUNKNOWN
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicAudioPathImpl
,
UnknownVtbl
,
iface
);
ULONG
ref
=
--
This
->
ref
;
TRACE
(
"(%p): ReleaseRef to %ld
\n
"
,
This
,
This
->
ref
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
)
;
TRACE
(
"(%p): ReleaseRef to %ld
\n
"
,
This
,
ref
);
if
(
ref
==
0
)
{
if
(
This
->
pDSBuffer
)
{
IDirectSoundBuffer8_Release
(
This
->
pDSBuffer
);
...
...
dlls/dmime/dmime_main.c
View file @
3da8524b
...
...
@@ -40,13 +40,13 @@ static HRESULT WINAPI PerformanceCF_QueryInterface(LPCLASSFACTORY iface,REFIID r
static
ULONG
WINAPI
PerformanceCF_AddRef
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
return
++
(
This
->
ref
);
return
InterlockedIncrement
(
&
This
->
ref
);
}
static
ULONG
WINAPI
PerformanceCF_Release
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
/* static class, won't be freed */
return
--
(
This
->
ref
);
return
InterlockedDecrement
(
&
This
->
ref
);
}
static
HRESULT
WINAPI
PerformanceCF_CreateInstance
(
LPCLASSFACTORY
iface
,
LPUNKNOWN
pOuter
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
...
...
@@ -82,13 +82,13 @@ static HRESULT WINAPI SegmentCF_QueryInterface(LPCLASSFACTORY iface,REFIID riid,
static
ULONG
WINAPI
SegmentCF_AddRef
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
return
++
(
This
->
ref
);
return
InterlockedIncrement
(
&
This
->
ref
);
}
static
ULONG
WINAPI
SegmentCF_Release
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
/* static class, won't be freed */
return
--
(
This
->
ref
);
return
InterlockedDecrement
(
&
This
->
ref
);
}
static
HRESULT
WINAPI
SegmentCF_CreateInstance
(
LPCLASSFACTORY
iface
,
LPUNKNOWN
pOuter
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
...
...
@@ -124,13 +124,13 @@ static HRESULT WINAPI SegmentStateCF_QueryInterface(LPCLASSFACTORY iface,REFIID
static
ULONG
WINAPI
SegmentStateCF_AddRef
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
return
++
(
This
->
ref
);
return
InterlockedIncrement
(
&
This
->
ref
);
}
static
ULONG
WINAPI
SegmentStateCF_Release
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
/* static class, won't be freed */
return
--
(
This
->
ref
);
return
InterlockedDecrement
(
&
This
->
ref
);
}
static
HRESULT
WINAPI
SegmentStateCF_CreateInstance
(
LPCLASSFACTORY
iface
,
LPUNKNOWN
pOuter
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
...
...
@@ -166,13 +166,13 @@ static HRESULT WINAPI GraphCF_QueryInterface(LPCLASSFACTORY iface,REFIID riid,LP
static
ULONG
WINAPI
GraphCF_AddRef
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
return
++
(
This
->
ref
);
return
InterlockedIncrement
(
&
This
->
ref
);
}
static
ULONG
WINAPI
GraphCF_Release
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
/* static class, won't be freed */
return
--
(
This
->
ref
);
return
InterlockedDecrement
(
&
This
->
ref
);
}
static
HRESULT
WINAPI
GraphCF_CreateInstance
(
LPCLASSFACTORY
iface
,
LPUNKNOWN
pOuter
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
...
...
@@ -208,13 +208,13 @@ static HRESULT WINAPI TempoTrackCF_QueryInterface(LPCLASSFACTORY iface,REFIID ri
static
ULONG
WINAPI
TempoTrackCF_AddRef
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
return
++
(
This
->
ref
);
return
InterlockedIncrement
(
&
This
->
ref
);
}
static
ULONG
WINAPI
TempoTrackCF_Release
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
/* static class, won't be freed */
return
--
(
This
->
ref
);
return
InterlockedDecrement
(
&
This
->
ref
);
}
static
HRESULT
WINAPI
TempoTrackCF_CreateInstance
(
LPCLASSFACTORY
iface
,
LPUNKNOWN
pOuter
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
...
...
@@ -250,13 +250,13 @@ static HRESULT WINAPI SeqTrackCF_QueryInterface(LPCLASSFACTORY iface,REFIID riid
static
ULONG
WINAPI
SeqTrackCF_AddRef
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
return
++
(
This
->
ref
);
return
InterlockedIncrement
(
&
This
->
ref
);
}
static
ULONG
WINAPI
SeqTrackCF_Release
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
/* static class, won't be freed */
return
--
(
This
->
ref
);
return
InterlockedDecrement
(
&
This
->
ref
);
}
static
HRESULT
WINAPI
SeqTrackCF_CreateInstance
(
LPCLASSFACTORY
iface
,
LPUNKNOWN
pOuter
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
...
...
@@ -292,13 +292,13 @@ static HRESULT WINAPI SysExTrackCF_QueryInterface(LPCLASSFACTORY iface,REFIID ri
static
ULONG
WINAPI
SysExTrackCF_AddRef
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
return
++
(
This
->
ref
);
return
InterlockedIncrement
(
&
This
->
ref
);
}
static
ULONG
WINAPI
SysExTrackCF_Release
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
/* static class, won't be freed */
return
--
(
This
->
ref
);
return
InterlockedDecrement
(
&
This
->
ref
);
}
static
HRESULT
WINAPI
SysExTrackCF_CreateInstance
(
LPCLASSFACTORY
iface
,
LPUNKNOWN
pOuter
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
...
...
@@ -334,13 +334,13 @@ static HRESULT WINAPI TimeSigTrackCF_QueryInterface(LPCLASSFACTORY iface,REFIID
static
ULONG
WINAPI
TimeSigTrackCF_AddRef
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
return
++
(
This
->
ref
);
return
InterlockedIncrement
(
&
This
->
ref
);
}
static
ULONG
WINAPI
TimeSigTrackCF_Release
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
/* static class, won't be freed */
return
--
(
This
->
ref
);
return
InterlockedDecrement
(
&
This
->
ref
);
}
static
HRESULT
WINAPI
TimeSigTrackCF_CreateInstance
(
LPCLASSFACTORY
iface
,
LPUNKNOWN
pOuter
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
...
...
@@ -376,13 +376,13 @@ static HRESULT WINAPI ParamControlTrackCF_QueryInterface(LPCLASSFACTORY iface,RE
static
ULONG
WINAPI
ParamControlTrackCF_AddRef
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
return
++
(
This
->
ref
);
return
InterlockedIncrement
(
&
This
->
ref
);
}
static
ULONG
WINAPI
ParamControlTrackCF_Release
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
/* static class, won't be freed */
return
--
(
This
->
ref
);
return
InterlockedDecrement
(
&
This
->
ref
);
}
static
HRESULT
WINAPI
ParamControlTrackCF_CreateInstance
(
LPCLASSFACTORY
iface
,
LPUNKNOWN
pOuter
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
...
...
@@ -418,13 +418,13 @@ static HRESULT WINAPI MarkerTrackCF_QueryInterface(LPCLASSFACTORY iface,REFIID r
static
ULONG
WINAPI
MarkerTrackCF_AddRef
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
return
++
(
This
->
ref
);
return
InterlockedIncrement
(
&
This
->
ref
);
}
static
ULONG
WINAPI
MarkerTrackCF_Release
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
/* static class, won't be freed */
return
--
(
This
->
ref
);
return
InterlockedDecrement
(
&
This
->
ref
);
}
static
HRESULT
WINAPI
MarkerTrackCF_CreateInstance
(
LPCLASSFACTORY
iface
,
LPUNKNOWN
pOuter
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
...
...
@@ -460,13 +460,13 @@ static HRESULT WINAPI LyricsTrackCF_QueryInterface(LPCLASSFACTORY iface,REFIID r
static
ULONG
WINAPI
LyricsTrackCF_AddRef
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
return
++
(
This
->
ref
);
return
InterlockedIncrement
(
&
This
->
ref
);
}
static
ULONG
WINAPI
LyricsTrackCF_Release
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
/* static class, won't be freed */
return
--
(
This
->
ref
);
return
InterlockedDecrement
(
&
This
->
ref
);
}
static
HRESULT
WINAPI
LyricsTrackCF_CreateInstance
(
LPCLASSFACTORY
iface
,
LPUNKNOWN
pOuter
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
...
...
@@ -503,13 +503,13 @@ static HRESULT WINAPI SegTriggerTrackCF_QueryInterface(LPCLASSFACTORY iface,REFI
static
ULONG
WINAPI
SegTriggerTrackCF_AddRef
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
return
++
(
This
->
ref
);
return
InterlockedIncrement
(
&
This
->
ref
);
}
static
ULONG
WINAPI
SegTriggerTrackCF_Release
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
/* static class, won't be freed */
return
--
(
This
->
ref
);
return
InterlockedDecrement
(
&
This
->
ref
);
}
static
HRESULT
WINAPI
SegTriggerTrackCF_CreateInstance
(
LPCLASSFACTORY
iface
,
LPUNKNOWN
pOuter
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
...
...
@@ -545,13 +545,13 @@ static HRESULT WINAPI AudioPathCF_QueryInterface(LPCLASSFACTORY iface,REFIID rii
static
ULONG
WINAPI
AudioPathCF_AddRef
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
return
++
(
This
->
ref
);
return
InterlockedIncrement
(
&
This
->
ref
);
}
static
ULONG
WINAPI
AudioPathCF_Release
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
/* static class, won't be freed */
return
--
(
This
->
ref
);
return
InterlockedDecrement
(
&
This
->
ref
);
}
static
HRESULT
WINAPI
AudioPathCF_CreateInstance
(
LPCLASSFACTORY
iface
,
LPUNKNOWN
pOuter
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
...
...
@@ -587,13 +587,13 @@ static HRESULT WINAPI WaveTrackCF_QueryInterface(LPCLASSFACTORY iface,REFIID rii
static
ULONG
WINAPI
WaveTrackCF_AddRef
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
return
++
(
This
->
ref
);
return
InterlockedIncrement
(
&
This
->
ref
);
}
static
ULONG
WINAPI
WaveTrackCF_Release
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
/* static class, won't be freed */
return
--
(
This
->
ref
);
return
InterlockedDecrement
(
&
This
->
ref
);
}
static
HRESULT
WINAPI
WaveTrackCF_CreateInstance
(
LPCLASSFACTORY
iface
,
LPUNKNOWN
pOuter
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
...
...
dlls/dmime/graph.c
View file @
3da8524b
...
...
@@ -54,14 +54,17 @@ HRESULT WINAPI IDirectMusicGraphImpl_IUnknown_QueryInterface (LPUNKNOWN iface, R
ULONG
WINAPI
IDirectMusicGraphImpl_IUnknown_AddRef
(
LPUNKNOWN
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicGraphImpl
,
UnknownVtbl
,
iface
);
TRACE
(
"(%p): AddRef from %ld
\n
"
,
This
,
This
->
ref
);
return
++
(
This
->
ref
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p): AddRef from %ld
\n
"
,
This
,
ref
-
1
);
return
ref
;
}
ULONG
WINAPI
IDirectMusicGraphImpl_IUnknown_Release
(
LPUNKNOWN
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicGraphImpl
,
UnknownVtbl
,
iface
);
ULONG
ref
=
--
This
->
ref
;
TRACE
(
"(%p): ReleaseRef to %ld
\n
"
,
This
,
This
->
ref
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
)
;
TRACE
(
"(%p): ReleaseRef to %ld
\n
"
,
This
,
ref
);
if
(
ref
==
0
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
...
...
dlls/dmime/lyricstrack.c
View file @
3da8524b
...
...
@@ -51,14 +51,17 @@ HRESULT WINAPI IDirectMusicLyricsTrack_IUnknown_QueryInterface (LPUNKNOWN iface,
ULONG
WINAPI
IDirectMusicLyricsTrack_IUnknown_AddRef
(
LPUNKNOWN
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicLyricsTrack
,
UnknownVtbl
,
iface
);
TRACE
(
"(%p): AddRef from %ld
\n
"
,
This
,
This
->
ref
);
return
++
(
This
->
ref
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p): AddRef from %ld
\n
"
,
This
,
ref
-
1
);
return
ref
;
}
ULONG
WINAPI
IDirectMusicLyricsTrack_IUnknown_Release
(
LPUNKNOWN
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicLyricsTrack
,
UnknownVtbl
,
iface
);
ULONG
ref
=
--
This
->
ref
;
TRACE
(
"(%p): ReleaseRef to %ld
\n
"
,
This
,
This
->
ref
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
)
;
TRACE
(
"(%p): ReleaseRef to %ld
\n
"
,
This
,
ref
);
if
(
ref
==
0
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
...
...
dlls/dmime/markertrack.c
View file @
3da8524b
...
...
@@ -51,14 +51,17 @@ HRESULT WINAPI IDirectMusicMarkerTrack_IUnknown_QueryInterface (LPUNKNOWN iface,
ULONG
WINAPI
IDirectMusicMarkerTrack_IUnknown_AddRef
(
LPUNKNOWN
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicMarkerTrack
,
UnknownVtbl
,
iface
);
TRACE
(
"(%p): AddRef from %ld
\n
"
,
This
,
This
->
ref
);
return
++
(
This
->
ref
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p): AddRef from %ld
\n
"
,
This
,
ref
-
1
);
return
ref
;
}
ULONG
WINAPI
IDirectMusicMarkerTrack_IUnknown_Release
(
LPUNKNOWN
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicMarkerTrack
,
UnknownVtbl
,
iface
);
ULONG
ref
=
--
This
->
ref
;
TRACE
(
"(%p): ReleaseRef to %ld
\n
"
,
This
,
This
->
ref
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
)
;
TRACE
(
"(%p): ReleaseRef to %ld
\n
"
,
This
,
ref
);
if
(
ref
==
0
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
...
...
dlls/dmime/paramcontroltrack.c
View file @
3da8524b
...
...
@@ -51,14 +51,17 @@ HRESULT WINAPI IDirectMusicParamControlTrack_IUnknown_QueryInterface (LPUNKNOWN
ULONG
WINAPI
IDirectMusicParamControlTrack_IUnknown_AddRef
(
LPUNKNOWN
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicParamControlTrack
,
UnknownVtbl
,
iface
);
TRACE
(
"(%p): AddRef from %ld
\n
"
,
This
,
This
->
ref
);
return
++
(
This
->
ref
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p): AddRef from %ld
\n
"
,
This
,
ref
-
1
);
return
ref
;
}
ULONG
WINAPI
IDirectMusicParamControlTrack_IUnknown_Release
(
LPUNKNOWN
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicParamControlTrack
,
UnknownVtbl
,
iface
);
ULONG
ref
=
--
This
->
ref
;
TRACE
(
"(%p): ReleaseRef to %ld
\n
"
,
This
,
This
->
ref
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
)
;
TRACE
(
"(%p): ReleaseRef to %ld
\n
"
,
This
,
ref
);
if
(
ref
==
0
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
...
...
dlls/dmime/patterntrack.c
View file @
3da8524b
...
...
@@ -39,14 +39,17 @@ HRESULT WINAPI IDirectMusicPatternTrackImpl_QueryInterface (LPDIRECTMUSICPATTERN
ULONG
WINAPI
IDirectMusicPatternTrackImpl_AddRef
(
LPDIRECTMUSICPATTERNTRACK
iface
)
{
IDirectMusicPatternTrackImpl
*
This
=
(
IDirectMusicPatternTrackImpl
*
)
iface
;
TRACE
(
"(%p): AddRef from %ld
\n
"
,
This
,
This
->
ref
);
return
++
(
This
->
ref
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p): AddRef from %ld
\n
"
,
This
,
ref
-
1
);
return
ref
;
}
ULONG
WINAPI
IDirectMusicPatternTrackImpl_Release
(
LPDIRECTMUSICPATTERNTRACK
iface
)
{
IDirectMusicPatternTrackImpl
*
This
=
(
IDirectMusicPatternTrackImpl
*
)
iface
;
ULONG
ref
=
--
This
->
ref
;
TRACE
(
"(%p): ReleaseRef to %ld
\n
"
,
This
,
This
->
ref
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
)
;
TRACE
(
"(%p): ReleaseRef to %ld
\n
"
,
This
,
ref
);
if
(
ref
==
0
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
...
...
dlls/dmime/performance.c
View file @
3da8524b
...
...
@@ -182,14 +182,17 @@ HRESULT WINAPI IDirectMusicPerformance8Impl_QueryInterface (LPDIRECTMUSICPERFORM
ULONG
WINAPI
IDirectMusicPerformance8Impl_AddRef
(
LPDIRECTMUSICPERFORMANCE8
iface
)
{
IDirectMusicPerformance8Impl
*
This
=
(
IDirectMusicPerformance8Impl
*
)
iface
;
TRACE
(
"(%p): AddRef from %ld
\n
"
,
This
,
This
->
ref
);
return
++
(
This
->
ref
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p): AddRef from %ld
\n
"
,
This
,
ref
-
1
);
return
ref
;
}
ULONG
WINAPI
IDirectMusicPerformance8Impl_Release
(
LPDIRECTMUSICPERFORMANCE8
iface
)
{
IDirectMusicPerformance8Impl
*
This
=
(
IDirectMusicPerformance8Impl
*
)
iface
;
ULONG
ref
=
--
This
->
ref
;
TRACE
(
"(%p): ReleaseRef to %ld
\n
"
,
This
,
This
->
ref
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
)
;
TRACE
(
"(%p): ReleaseRef to %ld
\n
"
,
This
,
ref
);
if
(
ref
==
0
)
{
DeleteCriticalSection
(
&
This
->
safe
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
...
...
dlls/dmime/segment.c
View file @
3da8524b
...
...
@@ -57,14 +57,17 @@ HRESULT WINAPI IDirectMusicSegment8Impl_IUnknown_QueryInterface (LPUNKNOWN iface
ULONG
WINAPI
IDirectMusicSegment8Impl_IUnknown_AddRef
(
LPUNKNOWN
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicSegment8Impl
,
UnknownVtbl
,
iface
);
TRACE
(
"(%p): AddRef from %ld
\n
"
,
This
,
This
->
ref
);
return
++
(
This
->
ref
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p): AddRef from %ld
\n
"
,
This
,
ref
-
1
);
return
ref
;
}
ULONG
WINAPI
IDirectMusicSegment8Impl_IUnknown_Release
(
LPUNKNOWN
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicSegment8Impl
,
UnknownVtbl
,
iface
);
ULONG
ref
=
--
This
->
ref
;
TRACE
(
"(%p): ReleaseRef to %ld
\n
"
,
This
,
This
->
ref
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
)
;
TRACE
(
"(%p): ReleaseRef to %ld
\n
"
,
This
,
ref
);
if
(
ref
==
0
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
...
...
dlls/dmime/segmentstate.c
View file @
3da8524b
...
...
@@ -39,14 +39,17 @@ HRESULT WINAPI IDirectMusicSegmentState8Impl_QueryInterface (LPDIRECTMUSICSEGMEN
ULONG
WINAPI
IDirectMusicSegmentState8Impl_AddRef
(
LPDIRECTMUSICSEGMENTSTATE8
iface
)
{
IDirectMusicSegmentState8Impl
*
This
=
(
IDirectMusicSegmentState8Impl
*
)
iface
;
TRACE
(
"(%p): AddRef from %ld
\n
"
,
This
,
This
->
ref
);
return
++
(
This
->
ref
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p): AddRef from %ld
\n
"
,
This
,
ref
-
1
);
return
ref
;
}
ULONG
WINAPI
IDirectMusicSegmentState8Impl_Release
(
LPDIRECTMUSICSEGMENTSTATE8
iface
)
{
IDirectMusicSegmentState8Impl
*
This
=
(
IDirectMusicSegmentState8Impl
*
)
iface
;
ULONG
ref
=
--
This
->
ref
;
TRACE
(
"(%p): ReleaseRef to %ld
\n
"
,
This
,
This
->
ref
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
)
;
TRACE
(
"(%p): ReleaseRef to %ld
\n
"
,
This
,
ref
);
if
(
ref
==
0
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
...
...
dlls/dmime/segtriggertrack.c
View file @
3da8524b
...
...
@@ -52,14 +52,17 @@ HRESULT WINAPI IDirectMusicSegTriggerTrack_IUnknown_QueryInterface (LPUNKNOWN if
ULONG
WINAPI
IDirectMusicSegTriggerTrack_IUnknown_AddRef
(
LPUNKNOWN
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicSegTriggerTrack
,
UnknownVtbl
,
iface
);
TRACE
(
"(%p): AddRef from %ld
\n
"
,
This
,
This
->
ref
);
return
++
(
This
->
ref
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p): AddRef from %ld
\n
"
,
This
,
ref
-
1
);
return
ref
;
}
ULONG
WINAPI
IDirectMusicSegTriggerTrack_IUnknown_Release
(
LPUNKNOWN
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicSegTriggerTrack
,
UnknownVtbl
,
iface
);
ULONG
ref
=
--
This
->
ref
;
TRACE
(
"(%p): ReleaseRef to %ld
\n
"
,
This
,
This
->
ref
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
)
;
TRACE
(
"(%p): ReleaseRef to %ld
\n
"
,
This
,
ref
);
if
(
ref
==
0
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
...
...
dlls/dmime/seqtrack.c
View file @
3da8524b
...
...
@@ -51,14 +51,17 @@ HRESULT WINAPI IDirectMusicSeqTrack_IUnknown_QueryInterface (LPUNKNOWN iface, RE
ULONG
WINAPI
IDirectMusicSeqTrack_IUnknown_AddRef
(
LPUNKNOWN
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicSeqTrack
,
UnknownVtbl
,
iface
);
TRACE
(
"(%p): AddRef from %ld
\n
"
,
This
,
This
->
ref
);
return
++
(
This
->
ref
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p): AddRef from %ld
\n
"
,
This
,
ref
-
1
);
return
ref
;
}
ULONG
WINAPI
IDirectMusicSeqTrack_IUnknown_Release
(
LPUNKNOWN
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicSeqTrack
,
UnknownVtbl
,
iface
);
ULONG
ref
=
--
This
->
ref
;
TRACE
(
"(%p): ReleaseRef to %ld
\n
"
,
This
,
This
->
ref
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
)
;
TRACE
(
"(%p): ReleaseRef to %ld
\n
"
,
This
,
ref
);
if
(
ref
==
0
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
...
...
dlls/dmime/sysextrack.c
View file @
3da8524b
...
...
@@ -51,14 +51,17 @@ HRESULT WINAPI IDirectMusicSysExTrack_IUnknown_QueryInterface (LPUNKNOWN iface,
ULONG
WINAPI
IDirectMusicSysExTrack_IUnknown_AddRef
(
LPUNKNOWN
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicSysExTrack
,
UnknownVtbl
,
iface
);
TRACE
(
"(%p): AddRef from %ld
\n
"
,
This
,
This
->
ref
);
return
++
(
This
->
ref
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p): AddRef from %ld
\n
"
,
This
,
ref
-
1
);
return
ref
;
}
ULONG
WINAPI
IDirectMusicSysExTrack_IUnknown_Release
(
LPUNKNOWN
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicSysExTrack
,
UnknownVtbl
,
iface
);
ULONG
ref
=
--
This
->
ref
;
TRACE
(
"(%p): ReleaseRef to %ld
\n
"
,
This
,
This
->
ref
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
)
;
TRACE
(
"(%p): ReleaseRef to %ld
\n
"
,
This
,
ref
);
if
(
ref
==
0
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
...
...
dlls/dmime/tempotrack.c
View file @
3da8524b
...
...
@@ -52,14 +52,17 @@ HRESULT WINAPI IDirectMusicTempoTrack_IUnknown_QueryInterface (LPUNKNOWN iface,
ULONG
WINAPI
IDirectMusicTempoTrack_IUnknown_AddRef
(
LPUNKNOWN
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicTempoTrack
,
UnknownVtbl
,
iface
);
TRACE
(
"(%p): AddRef from %ld
\n
"
,
This
,
This
->
ref
);
return
++
(
This
->
ref
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p): AddRef from %ld
\n
"
,
This
,
ref
-
1
);
return
ref
;
}
ULONG
WINAPI
IDirectMusicTempoTrack_IUnknown_Release
(
LPUNKNOWN
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicTempoTrack
,
UnknownVtbl
,
iface
);
ULONG
ref
=
--
This
->
ref
;
TRACE
(
"(%p): ReleaseRef to %ld
\n
"
,
This
,
This
->
ref
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
)
;
TRACE
(
"(%p): ReleaseRef to %ld
\n
"
,
This
,
ref
);
if
(
ref
==
0
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
...
...
dlls/dmime/timesigtrack.c
View file @
3da8524b
...
...
@@ -51,14 +51,17 @@ HRESULT WINAPI IDirectMusicTimeSigTrack_IUnknown_QueryInterface (LPUNKNOWN iface
ULONG
WINAPI
IDirectMusicTimeSigTrack_IUnknown_AddRef
(
LPUNKNOWN
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicTimeSigTrack
,
UnknownVtbl
,
iface
);
TRACE
(
"(%p): AddRef from %ld
\n
"
,
This
,
This
->
ref
);
return
++
(
This
->
ref
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p): AddRef from %ld
\n
"
,
This
,
ref
-
1
);
return
ref
;
}
ULONG
WINAPI
IDirectMusicTimeSigTrack_IUnknown_Release
(
LPUNKNOWN
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicTimeSigTrack
,
UnknownVtbl
,
iface
);
ULONG
ref
=
--
This
->
ref
;
TRACE
(
"(%p): ReleaseRef to %ld
\n
"
,
This
,
This
->
ref
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
)
;
TRACE
(
"(%p): ReleaseRef to %ld
\n
"
,
This
,
ref
);
if
(
ref
==
0
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
...
...
dlls/dmime/tool.c
View file @
3da8524b
...
...
@@ -38,14 +38,17 @@ HRESULT WINAPI IDirectMusicTool8Impl_QueryInterface (LPDIRECTMUSICTOOL8 iface, R
ULONG
WINAPI
IDirectMusicTool8Impl_AddRef
(
LPDIRECTMUSICTOOL8
iface
)
{
IDirectMusicTool8Impl
*
This
=
(
IDirectMusicTool8Impl
*
)
iface
;
TRACE
(
"(%p) : AddRef from %ld
\n
"
,
This
,
This
->
ref
);
return
++
(
This
->
ref
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p) : AddRef from %ld
\n
"
,
This
,
ref
-
1
);
return
ref
;
}
ULONG
WINAPI
IDirectMusicTool8Impl_Release
(
LPDIRECTMUSICTOOL8
iface
)
{
IDirectMusicTool8Impl
*
This
=
(
IDirectMusicTool8Impl
*
)
iface
;
ULONG
ref
=
--
This
->
ref
;
TRACE
(
"(%p) : ReleaseRef to %ld
\n
"
,
This
,
This
->
ref
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
)
;
TRACE
(
"(%p) : ReleaseRef to %ld
\n
"
,
This
,
ref
);
if
(
ref
==
0
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
...
...
dlls/dmime/wavetrack.c
View file @
3da8524b
...
...
@@ -51,14 +51,17 @@ HRESULT WINAPI IDirectMusicWaveTrack_IUnknown_QueryInterface (LPUNKNOWN iface, R
ULONG
WINAPI
IDirectMusicWaveTrack_IUnknown_AddRef
(
LPUNKNOWN
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicWaveTrack
,
UnknownVtbl
,
iface
);
TRACE
(
"(%p) : AddRef from %ld
\n
"
,
This
,
This
->
ref
);
return
++
(
This
->
ref
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p) : AddRef from %ld
\n
"
,
This
,
ref
-
1
);
return
ref
;
}
ULONG
WINAPI
IDirectMusicWaveTrack_IUnknown_Release
(
LPUNKNOWN
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicWaveTrack
,
UnknownVtbl
,
iface
);
ULONG
ref
=
--
This
->
ref
;
TRACE
(
"(%p) : ReleaseRef to %ld
\n
"
,
This
,
This
->
ref
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
)
;
TRACE
(
"(%p) : ReleaseRef to %ld
\n
"
,
This
,
ref
);
if
(
ref
==
0
)
{
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