Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
7a49e82d
Commit
7a49e82d
authored
Jan 24, 2005
by
Paul Vriens
Committed by
Alexandre Julliard
Jan 24, 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
231d9b9b
Hide whitespace changes
Inline
Side-by-side
Showing
40 changed files
with
360 additions
and
179 deletions
+360
-179
basetexture.c
dlls/d3d8/basetexture.c
+9
-4
cubetexture.c
dlls/d3d8/cubetexture.c
+7
-4
device.c
dlls/d3d8/device.c
+9
-4
directx.c
dlls/d3d8/directx.c
+9
-4
indexbuffer.c
dlls/d3d8/indexbuffer.c
+9
-4
resource.c
dlls/d3d8/resource.c
+9
-4
surface.c
dlls/d3d8/surface.c
+9
-4
swapchain.c
dlls/d3d8/swapchain.c
+9
-4
texture.c
dlls/d3d8/texture.c
+8
-4
vertexbuffer.c
dlls/d3d8/vertexbuffer.c
+9
-4
volume.c
dlls/d3d8/volume.c
+9
-4
volumetexture.c
dlls/d3d8/volumetexture.c
+8
-4
basetexture.c
dlls/d3d9/basetexture.c
+8
-3
cubetexture.c
dlls/d3d9/cubetexture.c
+7
-3
device.c
dlls/d3d9/device.c
+9
-4
directx.c
dlls/d3d9/directx.c
+9
-4
indexbuffer.c
dlls/d3d9/indexbuffer.c
+8
-3
pixelshader.c
dlls/d3d9/pixelshader.c
+8
-4
query.c
dlls/d3d9/query.c
+9
-4
resource.c
dlls/d3d9/resource.c
+8
-3
stateblock.c
dlls/d3d9/stateblock.c
+9
-4
surface.c
dlls/d3d9/surface.c
+8
-3
swapchain.c
dlls/d3d9/swapchain.c
+9
-4
texture.c
dlls/d3d9/texture.c
+7
-3
vertexbuffer.c
dlls/d3d9/vertexbuffer.c
+8
-3
vertexdeclaration.c
dlls/d3d9/vertexdeclaration.c
+9
-4
vertexshader.c
dlls/d3d9/vertexshader.c
+8
-4
volume.c
dlls/d3d9/volume.c
+8
-3
volumetexture.c
dlls/d3d9/volumetexture.c
+7
-3
dmscript_main.c
dlls/dmscript/dmscript_main.c
+20
-20
script.c
dlls/dmscript/script.c
+9
-4
scripttrack.c
dlls/dmscript/scripttrack.c
+9
-4
auditiontrack.c
dlls/dmstyle/auditiontrack.c
+9
-4
chordtrack.c
dlls/dmstyle/chordtrack.c
+9
-4
commandtrack.c
dlls/dmstyle/commandtrack.c
+9
-4
dmstyle_main.c
dlls/dmstyle/dmstyle_main.c
+16
-16
motiftrack.c
dlls/dmstyle/motiftrack.c
+9
-4
mutetrack.c
dlls/dmstyle/mutetrack.c
+9
-4
style.c
dlls/dmstyle/style.c
+9
-4
styletrack.c
dlls/dmstyle/styletrack.c
+9
-4
No files found.
dlls/d3d8/basetexture.c
View file @
7a49e82d
...
...
@@ -51,14 +51,19 @@ HRESULT WINAPI IDirect3DBaseTexture8Impl_QueryInterface(LPDIRECT3DBASETEXTURE8 i
ULONG
WINAPI
IDirect3DBaseTexture8Impl_AddRef
(
LPDIRECT3DBASETEXTURE8
iface
)
{
IDirect3DBaseTexture8Impl
*
This
=
(
IDirect3DBaseTexture8Impl
*
)
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
IDirect3DBaseTexture8Impl_Release
(
LPDIRECT3DBASETEXTURE8
iface
)
{
IDirect3DBaseTexture8Impl
*
This
=
(
IDirect3DBaseTexture8Impl
*
)
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
);
return
ref
;
...
...
dlls/d3d8/cubetexture.c
View file @
7a49e82d
...
...
@@ -52,16 +52,19 @@ HRESULT WINAPI IDirect3DCubeTexture8Impl_QueryInterface(LPDIRECT3DCUBETEXTURE8 i
ULONG
WINAPI
IDirect3DCubeTexture8Impl_AddRef
(
LPDIRECT3DCUBETEXTURE8
iface
)
{
IDirect3DCubeTexture8Impl
*
This
=
(
IDirect3DCubeTexture8Impl
*
)
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
IDirect3DCubeTexture8Impl_Release
(
LPDIRECT3DCUBETEXTURE8
iface
)
{
IDirect3DCubeTexture8Impl
*
This
=
(
IDirect3DCubeTexture8Impl
*
)
iface
;
ULONG
ref
=
--
This
->
ref
;
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
)
;
unsigned
int
i
,
j
;
TRACE
(
"(%p) : ReleaseRef to %ld
\n
"
,
This
,
This
->
ref
);
TRACE
(
"(%p) : ReleaseRef to %ld
\n
"
,
This
,
ref
);
if
(
ref
==
0
)
{
for
(
i
=
0
;
i
<
This
->
levels
;
i
++
)
{
for
(
j
=
0
;
j
<
6
;
j
++
)
{
...
...
dlls/d3d8/device.c
View file @
7a49e82d
...
...
@@ -297,14 +297,19 @@ HRESULT WINAPI IDirect3DDevice8Impl_QueryInterface(LPDIRECT3DDEVICE8 iface,REFII
ULONG
WINAPI
IDirect3DDevice8Impl_AddRef
(
LPDIRECT3DDEVICE8
iface
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
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
IDirect3DDevice8Impl_Release
(
LPDIRECT3DDEVICE8
iface
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
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
)
{
IDirect3DDevice8Impl_CleanRender
(
iface
);
IDirect3D8_Release
((
LPDIRECT3D8
)
This
->
direct3d8
);
...
...
dlls/d3d8/directx.c
View file @
7a49e82d
...
...
@@ -90,14 +90,19 @@ HRESULT WINAPI IDirect3D8Impl_QueryInterface(LPDIRECT3D8 iface,REFIID riid,LPVOI
ULONG
WINAPI
IDirect3D8Impl_AddRef
(
LPDIRECT3D8
iface
)
{
IDirect3D8Impl
*
This
=
(
IDirect3D8Impl
*
)
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
IDirect3D8Impl_Release
(
LPDIRECT3D8
iface
)
{
IDirect3D8Impl
*
This
=
(
IDirect3D8Impl
*
)
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
)
{
IWineD3D_Release
(
This
->
WineD3D
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
...
...
dlls/d3d8/indexbuffer.c
View file @
7a49e82d
...
...
@@ -51,14 +51,19 @@ HRESULT WINAPI IDirect3DIndexBuffer8Impl_QueryInterface(LPDIRECT3DINDEXBUFFER8 i
ULONG
WINAPI
IDirect3DIndexBuffer8Impl_AddRef
(
LPDIRECT3DINDEXBUFFER8
iface
)
{
IDirect3DIndexBuffer8Impl
*
This
=
(
IDirect3DIndexBuffer8Impl
*
)
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
IDirect3DIndexBuffer8Impl_Release
(
LPDIRECT3DINDEXBUFFER8
iface
)
{
IDirect3DIndexBuffer8Impl
*
This
=
(
IDirect3DIndexBuffer8Impl
*
)
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
->
allocatedMemory
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
...
...
dlls/d3d8/resource.c
View file @
7a49e82d
...
...
@@ -50,14 +50,19 @@ HRESULT WINAPI IDirect3DResource8Impl_QueryInterface(LPDIRECT3DRESOURCE8 iface,R
ULONG
WINAPI
IDirect3DResource8Impl_AddRef
(
LPDIRECT3DRESOURCE8
iface
)
{
IDirect3DResource8Impl
*
This
=
(
IDirect3DResource8Impl
*
)
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
IDirect3DResource8Impl_Release
(
LPDIRECT3DRESOURCE8
iface
)
{
IDirect3DResource8Impl
*
This
=
(
IDirect3DResource8Impl
*
)
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
);
return
ref
;
...
...
dlls/d3d8/surface.c
View file @
7a49e82d
...
...
@@ -57,14 +57,19 @@ HRESULT WINAPI IDirect3DSurface8Impl_QueryInterface(LPDIRECT3DSURFACE8 iface,REF
ULONG
WINAPI
IDirect3DSurface8Impl_AddRef
(
LPDIRECT3DSURFACE8
iface
)
{
IDirect3DSurface8Impl
*
This
=
(
IDirect3DSurface8Impl
*
)
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
IDirect3DSurface8Impl_Release
(
LPDIRECT3DSURFACE8
iface
)
{
IDirect3DSurface8Impl
*
This
=
(
IDirect3DSurface8Impl
*
)
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
->
allocatedMemory
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
...
...
dlls/d3d8/swapchain.c
View file @
7a49e82d
...
...
@@ -50,14 +50,19 @@ HRESULT WINAPI IDirect3DSwapChain8Impl_QueryInterface(LPDIRECT3DSWAPCHAIN8 iface
ULONG
WINAPI
IDirect3DSwapChain8Impl_AddRef
(
LPDIRECT3DSWAPCHAIN8
iface
)
{
IDirect3DSwapChain8Impl
*
This
=
(
IDirect3DSwapChain8Impl
*
)
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
IDirect3DSwapChain8Impl_Release
(
LPDIRECT3DSWAPCHAIN8
iface
)
{
IDirect3DSwapChain8Impl
*
This
=
(
IDirect3DSwapChain8Impl
*
)
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/d3d8/texture.c
View file @
7a49e82d
...
...
@@ -52,16 +52,20 @@ HRESULT WINAPI IDirect3DTexture8Impl_QueryInterface(LPDIRECT3DTEXTURE8 iface, RE
ULONG
WINAPI
IDirect3DTexture8Impl_AddRef
(
LPDIRECT3DTEXTURE8
iface
)
{
IDirect3DTexture8Impl
*
This
=
(
IDirect3DTexture8Impl
*
)
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
IDirect3DTexture8Impl_Release
(
LPDIRECT3DTEXTURE8
iface
)
{
IDirect3DTexture8Impl
*
This
=
(
IDirect3DTexture8Impl
*
)
iface
;
ULONG
ref
=
--
This
->
ref
;
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
)
;
unsigned
int
i
;
TRACE
(
"(%p) : ReleaseRef to %ld
\n
"
,
This
,
This
->
ref
);
TRACE
(
"(%p) : ReleaseRef to %ld
\n
"
,
This
,
ref
);
if
(
ref
==
0
)
{
for
(
i
=
0
;
i
<
This
->
levels
;
i
++
)
{
if
(
This
->
surfaces
[
i
]
!=
NULL
)
{
...
...
dlls/d3d8/vertexbuffer.c
View file @
7a49e82d
...
...
@@ -51,14 +51,19 @@ HRESULT WINAPI IDirect3DVertexBuffer8Impl_QueryInterface(LPDIRECT3DVERTEXBUFFER8
ULONG
WINAPI
IDirect3DVertexBuffer8Impl_AddRef
(
LPDIRECT3DVERTEXBUFFER8
iface
)
{
IDirect3DVertexBuffer8Impl
*
This
=
(
IDirect3DVertexBuffer8Impl
*
)
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
IDirect3DVertexBuffer8Impl_Release
(
LPDIRECT3DVERTEXBUFFER8
iface
)
{
IDirect3DVertexBuffer8Impl
*
This
=
(
IDirect3DVertexBuffer8Impl
*
)
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
->
allocatedMemory
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
...
...
dlls/d3d8/volume.c
View file @
7a49e82d
...
...
@@ -54,14 +54,19 @@ HRESULT WINAPI IDirect3DVolume8Impl_QueryInterface(LPDIRECT3DVOLUME8 iface, REFI
ULONG
WINAPI
IDirect3DVolume8Impl_AddRef
(
LPDIRECT3DVOLUME8
iface
)
{
IDirect3DVolume8Impl
*
This
=
(
IDirect3DVolume8Impl
*
)
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
IDirect3DVolume8Impl_Release
(
LPDIRECT3DVOLUME8
iface
)
{
IDirect3DVolume8Impl
*
This
=
(
IDirect3DVolume8Impl
*
)
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
->
allocatedMemory
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
...
...
dlls/d3d8/volumetexture.c
View file @
7a49e82d
...
...
@@ -53,16 +53,20 @@ HRESULT WINAPI IDirect3DVolumeTexture8Impl_QueryInterface(LPDIRECT3DVOLUMETEXTUR
ULONG
WINAPI
IDirect3DVolumeTexture8Impl_AddRef
(
LPDIRECT3DVOLUMETEXTURE8
iface
)
{
IDirect3DVolumeTexture8Impl
*
This
=
(
IDirect3DVolumeTexture8Impl
*
)
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
IDirect3DVolumeTexture8Impl_Release
(
LPDIRECT3DVOLUMETEXTURE8
iface
)
{
IDirect3DVolumeTexture8Impl
*
This
=
(
IDirect3DVolumeTexture8Impl
*
)
iface
;
ULONG
ref
=
--
This
->
ref
;
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
)
;
UINT
i
;
TRACE
(
"(%p) : ReleaseRef to %ld
\n
"
,
This
,
This
->
ref
);
TRACE
(
"(%p) : ReleaseRef to %ld
\n
"
,
This
,
ref
);
if
(
ref
==
0
)
{
for
(
i
=
0
;
i
<
This
->
levels
;
i
++
)
{
if
(
This
->
volumes
[
i
]
!=
NULL
)
{
...
...
dlls/d3d9/basetexture.c
View file @
7a49e82d
...
...
@@ -42,14 +42,19 @@ HRESULT WINAPI IDirect3DBaseTexture9Impl_QueryInterface(LPDIRECT3DBASETEXTURE9 i
ULONG
WINAPI
IDirect3DBaseTexture9Impl_AddRef
(
LPDIRECT3DBASETEXTURE9
iface
)
{
IDirect3DBaseTexture9Impl
*
This
=
(
IDirect3DBaseTexture9Impl
*
)
iface
;
TRACE
(
"(%p) : AddRef from %ld
\n
"
,
This
,
This
->
ref
);
return
InterlockedIncrement
(
&
This
->
ref
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p) : AddRef from %ld
\n
"
,
This
,
ref
-
1
);
return
ref
;
}
ULONG
WINAPI
IDirect3DBaseTexture9Impl_Release
(
LPDIRECT3DBASETEXTURE9
iface
)
{
IDirect3DBaseTexture9Impl
*
This
=
(
IDirect3DBaseTexture9Impl
*
)
iface
;
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p) : ReleaseRef to %ld
\n
"
,
This
,
This
->
ref
);
TRACE
(
"(%p) : ReleaseRef to %ld
\n
"
,
This
,
ref
);
if
(
ref
==
0
)
{
IWineD3DBaseTexture_Release
(
This
->
wineD3DBaseTexture
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
...
...
dlls/d3d9/cubetexture.c
View file @
7a49e82d
...
...
@@ -43,15 +43,19 @@ HRESULT WINAPI IDirect3DCubeTexture9Impl_QueryInterface(LPDIRECT3DCUBETEXTURE9 i
ULONG
WINAPI
IDirect3DCubeTexture9Impl_AddRef
(
LPDIRECT3DCUBETEXTURE9
iface
)
{
IDirect3DCubeTexture9Impl
*
This
=
(
IDirect3DCubeTexture9Impl
*
)
iface
;
TRACE
(
"(%p) : AddRef from %ld
\n
"
,
This
,
This
->
ref
);
return
InterlockedIncrement
(
&
This
->
ref
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p) : AddRef from %ld
\n
"
,
This
,
ref
-
1
);
return
ref
;
}
ULONG
WINAPI
IDirect3DCubeTexture9Impl_Release
(
LPDIRECT3DCUBETEXTURE9
iface
)
{
IDirect3DCubeTexture9Impl
*
This
=
(
IDirect3DCubeTexture9Impl
*
)
iface
;
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p) : ReleaseRef to %ld
\n
"
,
This
,
This
->
ref
);
TRACE
(
"(%p) : ReleaseRef to %ld
\n
"
,
This
,
ref
);
if
(
ref
==
0
)
{
IWineD3DCubeTexture_Release
(
This
->
wineD3DCubeTexture
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
...
...
dlls/d3d9/device.c
View file @
7a49e82d
...
...
@@ -46,14 +46,19 @@ HRESULT WINAPI IDirect3DDevice9Impl_QueryInterface(LPDIRECT3DDEVICE9 iface, REFI
ULONG
WINAPI
IDirect3DDevice9Impl_AddRef
(
LPDIRECT3DDEVICE9
iface
)
{
IDirect3DDevice9Impl
*
This
=
(
IDirect3DDevice9Impl
*
)
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
IDirect3DDevice9Impl_Release
(
LPDIRECT3DDEVICE9
iface
)
{
IDirect3DDevice9Impl
*
This
=
(
IDirect3DDevice9Impl
*
)
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
)
{
IDirect3D9_Release
((
LPDIRECT3D9
)
This
->
direct3d
);
IWineD3DDevice_Release
(
This
->
WineD3DDevice
);
...
...
dlls/d3d9/directx.c
View file @
7a49e82d
...
...
@@ -41,14 +41,19 @@ HRESULT WINAPI IDirect3D9Impl_QueryInterface(LPDIRECT3D9 iface, REFIID riid, LPV
ULONG
WINAPI
IDirect3D9Impl_AddRef
(
LPDIRECT3D9
iface
)
{
IDirect3D9Impl
*
This
=
(
IDirect3D9Impl
*
)
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
IDirect3D9Impl_Release
(
LPDIRECT3D9
iface
)
{
IDirect3D9Impl
*
This
=
(
IDirect3D9Impl
*
)
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
)
{
IWineD3D_Release
(
This
->
WineD3D
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
...
...
dlls/d3d9/indexbuffer.c
View file @
7a49e82d
...
...
@@ -42,14 +42,19 @@ HRESULT WINAPI IDirect3DIndexBuffer9Impl_QueryInterface(LPDIRECT3DINDEXBUFFER9 i
ULONG
WINAPI
IDirect3DIndexBuffer9Impl_AddRef
(
LPDIRECT3DINDEXBUFFER9
iface
)
{
IDirect3DIndexBuffer9Impl
*
This
=
(
IDirect3DIndexBuffer9Impl
*
)
iface
;
TRACE
(
"(%p) : AddRef from %ld
\n
"
,
This
,
This
->
ref
);
return
InterlockedIncrement
(
&
This
->
ref
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p) : AddRef from %ld
\n
"
,
This
,
ref
-
1
);
return
ref
;
}
ULONG
WINAPI
IDirect3DIndexBuffer9Impl_Release
(
LPDIRECT3DINDEXBUFFER9
iface
)
{
IDirect3DIndexBuffer9Impl
*
This
=
(
IDirect3DIndexBuffer9Impl
*
)
iface
;
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p) : ReleaseRef to %ld
\n
"
,
This
,
This
->
ref
);
TRACE
(
"(%p) : ReleaseRef to %ld
\n
"
,
This
,
ref
);
if
(
ref
==
0
)
{
IWineD3DIndexBuffer_Release
(
This
->
wineD3DIndexBuffer
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
...
...
dlls/d3d9/pixelshader.c
View file @
7a49e82d
...
...
@@ -41,15 +41,19 @@ HRESULT WINAPI IDirect3DPixelShader9Impl_QueryInterface(LPDIRECT3DPIXELSHADER9 i
ULONG
WINAPI
IDirect3DPixelShader9Impl_AddRef
(
LPDIRECT3DPIXELSHADER9
iface
)
{
IDirect3DPixelShader9Impl
*
This
=
(
IDirect3DPixelShader9Impl
*
)
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
IDirect3DPixelShader9Impl_Release
(
LPDIRECT3DPIXELSHADER9
iface
)
{
IDirect3DPixelShader9Impl
*
This
=
(
IDirect3DPixelShader9Impl
*
)
iface
;
ULONG
ref
=
--
This
->
ref
;
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p) : ReleaseRef to %ld
\n
"
,
This
,
ref
);
TRACE
(
"(%p) : ReleaseRef to %ld
\n
"
,
This
,
This
->
ref
);
if
(
ref
==
0
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
...
...
dlls/d3d9/query.c
View file @
7a49e82d
...
...
@@ -41,14 +41,19 @@ HRESULT WINAPI IDirect3DQuery9Impl_QueryInterface(LPDIRECT3DQUERY9 iface, REFIID
ULONG
WINAPI
IDirect3DQuery9Impl_AddRef
(
LPDIRECT3DQUERY9
iface
)
{
IDirect3DQuery9Impl
*
This
=
(
IDirect3DQuery9Impl
*
)
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
IDirect3DQuery9Impl_Release
(
LPDIRECT3DQUERY9
iface
)
{
IDirect3DQuery9Impl
*
This
=
(
IDirect3DQuery9Impl
*
)
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/d3d9/resource.c
View file @
7a49e82d
...
...
@@ -41,14 +41,19 @@ HRESULT WINAPI IDirect3DResource9Impl_QueryInterface(LPDIRECT3DRESOURCE9 iface,
ULONG
WINAPI
IDirect3DResource9Impl_AddRef
(
LPDIRECT3DRESOURCE9
iface
)
{
IDirect3DResource9Impl
*
This
=
(
IDirect3DResource9Impl
*
)
iface
;
TRACE
(
"(%p) : AddRef from %ld
\n
"
,
This
,
This
->
ref
);
return
InterlockedIncrement
(
&
This
->
ref
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p) : AddRef from %ld
\n
"
,
This
,
ref
-
1
);
return
ref
;
}
ULONG
WINAPI
IDirect3DResource9Impl_Release
(
LPDIRECT3DRESOURCE9
iface
)
{
IDirect3DResource9Impl
*
This
=
(
IDirect3DResource9Impl
*
)
iface
;
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p) : ReleaseRef to %ld
\n
"
,
This
,
This
->
ref
);
TRACE
(
"(%p) : ReleaseRef to %ld
\n
"
,
This
,
ref
);
if
(
ref
==
0
)
{
IWineD3DResource_Release
(
This
->
wineD3DResource
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
...
...
dlls/d3d9/stateblock.c
View file @
7a49e82d
...
...
@@ -41,14 +41,19 @@ HRESULT WINAPI IDirect3DStateBlock9Impl_QueryInterface(LPDIRECT3DSTATEBLOCK9 ifa
ULONG
WINAPI
IDirect3DStateBlock9Impl_AddRef
(
LPDIRECT3DSTATEBLOCK9
iface
)
{
IDirect3DStateBlock9Impl
*
This
=
(
IDirect3DStateBlock9Impl
*
)
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
IDirect3DStateBlock9Impl_Release
(
LPDIRECT3DSTATEBLOCK9
iface
)
{
IDirect3DStateBlock9Impl
*
This
=
(
IDirect3DStateBlock9Impl
*
)
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/d3d9/surface.c
View file @
7a49e82d
...
...
@@ -42,14 +42,19 @@ HRESULT WINAPI IDirect3DSurface9Impl_QueryInterface(LPDIRECT3DSURFACE9 iface, RE
ULONG
WINAPI
IDirect3DSurface9Impl_AddRef
(
LPDIRECT3DSURFACE9
iface
)
{
IDirect3DSurface9Impl
*
This
=
(
IDirect3DSurface9Impl
*
)
iface
;
TRACE
(
"(%p) : AddRef from %ld
\n
"
,
This
,
This
->
ref
);
return
InterlockedIncrement
(
&
This
->
ref
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p) : AddRef from %ld
\n
"
,
This
,
ref
-
1
);
return
ref
;
}
ULONG
WINAPI
IDirect3DSurface9Impl_Release
(
LPDIRECT3DSURFACE9
iface
)
{
IDirect3DSurface9Impl
*
This
=
(
IDirect3DSurface9Impl
*
)
iface
;
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p) : ReleaseRef to %ld
\n
"
,
This
,
This
->
ref
);
TRACE
(
"(%p) : ReleaseRef to %ld
\n
"
,
This
,
ref
);
if
(
ref
==
0
)
{
IWineD3DSurface_Release
(
This
->
wineD3DSurface
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
...
...
dlls/d3d9/swapchain.c
View file @
7a49e82d
...
...
@@ -42,14 +42,19 @@ HRESULT WINAPI IDirect3DSwapChain9Impl_QueryInterface(LPDIRECT3DSWAPCHAIN9 iface
ULONG
WINAPI
IDirect3DSwapChain9Impl_AddRef
(
LPDIRECT3DSWAPCHAIN9
iface
)
{
IDirect3DSwapChain9Impl
*
This
=
(
IDirect3DSwapChain9Impl
*
)
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
IDirect3DSwapChain9Impl_Release
(
LPDIRECT3DSWAPCHAIN9
iface
)
{
IDirect3DSwapChain9Impl
*
This
=
(
IDirect3DSwapChain9Impl
*
)
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/d3d9/texture.c
View file @
7a49e82d
...
...
@@ -43,15 +43,19 @@ HRESULT WINAPI IDirect3DTexture9Impl_QueryInterface(LPDIRECT3DTEXTURE9 iface, RE
ULONG
WINAPI
IDirect3DTexture9Impl_AddRef
(
LPDIRECT3DTEXTURE9
iface
)
{
IDirect3DTexture9Impl
*
This
=
(
IDirect3DTexture9Impl
*
)
iface
;
TRACE
(
"(%p) : AddRef from %ld
\n
"
,
This
,
This
->
ref
);
return
InterlockedIncrement
(
&
This
->
ref
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p) : AddRef from %ld
\n
"
,
This
,
ref
-
1
);
return
ref
;
}
ULONG
WINAPI
IDirect3DTexture9Impl_Release
(
LPDIRECT3DTEXTURE9
iface
)
{
IDirect3DTexture9Impl
*
This
=
(
IDirect3DTexture9Impl
*
)
iface
;
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p) : ReleaseRef to %ld
\n
"
,
This
,
This
->
ref
);
TRACE
(
"(%p) : ReleaseRef to %ld
\n
"
,
This
,
ref
);
if
(
ref
==
0
)
{
IWineD3DTexture_Release
(
This
->
wineD3DTexture
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
...
...
dlls/d3d9/vertexbuffer.c
View file @
7a49e82d
...
...
@@ -42,14 +42,19 @@ HRESULT WINAPI IDirect3DVertexBuffer9Impl_QueryInterface(LPDIRECT3DVERTEXBUFFER9
ULONG
WINAPI
IDirect3DVertexBuffer9Impl_AddRef
(
LPDIRECT3DVERTEXBUFFER9
iface
)
{
IDirect3DVertexBuffer9Impl
*
This
=
(
IDirect3DVertexBuffer9Impl
*
)
iface
;
TRACE
(
"(%p) : AddRef from %ld
\n
"
,
This
,
This
->
ref
);
return
InterlockedIncrement
(
&
This
->
ref
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p) : AddRef from %ld
\n
"
,
This
,
ref
-
1
);
return
ref
;
}
ULONG
WINAPI
IDirect3DVertexBuffer9Impl_Release
(
LPDIRECT3DVERTEXBUFFER9
iface
)
{
IDirect3DVertexBuffer9Impl
*
This
=
(
IDirect3DVertexBuffer9Impl
*
)
iface
;
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p) : ReleaseRef to %ld
\n
"
,
This
,
This
->
ref
);
TRACE
(
"(%p) : ReleaseRef to %ld
\n
"
,
This
,
ref
);
if
(
ref
==
0
)
{
IWineD3DVertexBuffer_Release
(
This
->
wineD3DVertexBuffer
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
...
...
dlls/d3d9/vertexdeclaration.c
View file @
7a49e82d
...
...
@@ -41,14 +41,19 @@ HRESULT WINAPI IDirect3DVertexDeclaration9Impl_QueryInterface(LPDIRECT3DVERTEXDE
ULONG
WINAPI
IDirect3DVertexDeclaration9Impl_AddRef
(
LPDIRECT3DVERTEXDECLARATION9
iface
)
{
IDirect3DVertexDeclaration9Impl
*
This
=
(
IDirect3DVertexDeclaration9Impl
*
)
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
IDirect3DVertexDeclaration9Impl_Release
(
LPDIRECT3DVERTEXDECLARATION9
iface
)
{
IDirect3DVertexDeclaration9Impl
*
This
=
(
IDirect3DVertexDeclaration9Impl
*
)
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/d3d9/vertexshader.c
View file @
7a49e82d
...
...
@@ -41,15 +41,19 @@ HRESULT WINAPI IDirect3DVertexShader9Impl_QueryInterface(LPDIRECT3DVERTEXSHADER9
ULONG
WINAPI
IDirect3DVertexShader9Impl_AddRef
(
LPDIRECT3DVERTEXSHADER9
iface
)
{
IDirect3DVertexShader9Impl
*
This
=
(
IDirect3DVertexShader9Impl
*
)
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
IDirect3DVertexShader9Impl_Release
(
LPDIRECT3DVERTEXSHADER9
iface
)
{
IDirect3DVertexShader9Impl
*
This
=
(
IDirect3DVertexShader9Impl
*
)
iface
;
ULONG
ref
=
--
This
->
ref
;
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p) : ReleaseRef to %ld
\n
"
,
This
,
ref
);
TRACE
(
"(%p) : ReleaseRef to %ld
\n
"
,
This
,
This
->
ref
);
if
(
ref
==
0
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
...
...
dlls/d3d9/volume.c
View file @
7a49e82d
...
...
@@ -41,14 +41,19 @@ HRESULT WINAPI IDirect3DVolume9Impl_QueryInterface(LPDIRECT3DVOLUME9 iface, REFI
ULONG
WINAPI
IDirect3DVolume9Impl_AddRef
(
LPDIRECT3DVOLUME9
iface
)
{
IDirect3DVolume9Impl
*
This
=
(
IDirect3DVolume9Impl
*
)
iface
;
TRACE
(
"(%p) : AddRef from %ld
\n
"
,
This
,
This
->
ref
);
return
InterlockedIncrement
(
&
This
->
ref
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p) : AddRef from %ld
\n
"
,
This
,
ref
-
1
);
return
ref
;
}
ULONG
WINAPI
IDirect3DVolume9Impl_Release
(
LPDIRECT3DVOLUME9
iface
)
{
IDirect3DVolume9Impl
*
This
=
(
IDirect3DVolume9Impl
*
)
iface
;
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p) : ReleaseRef to %ld
\n
"
,
This
,
This
->
ref
);
TRACE
(
"(%p) : ReleaseRef to %ld
\n
"
,
This
,
ref
);
if
(
ref
==
0
)
{
IWineD3DVolume_Release
(
This
->
wineD3DVolume
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
...
...
dlls/d3d9/volumetexture.c
View file @
7a49e82d
...
...
@@ -43,15 +43,19 @@ HRESULT WINAPI IDirect3DVolumeTexture9Impl_QueryInterface(LPDIRECT3DVOLUMETEXTUR
ULONG
WINAPI
IDirect3DVolumeTexture9Impl_AddRef
(
LPDIRECT3DVOLUMETEXTURE9
iface
)
{
IDirect3DVolumeTexture9Impl
*
This
=
(
IDirect3DVolumeTexture9Impl
*
)
iface
;
TRACE
(
"(%p) : AddRef from %ld
\n
"
,
This
,
This
->
ref
);
return
InterlockedIncrement
(
&
This
->
ref
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p) : AddRef from %ld
\n
"
,
This
,
ref
-
1
);
return
ref
;
}
ULONG
WINAPI
IDirect3DVolumeTexture9Impl_Release
(
LPDIRECT3DVOLUMETEXTURE9
iface
)
{
IDirect3DVolumeTexture9Impl
*
This
=
(
IDirect3DVolumeTexture9Impl
*
)
iface
;
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p) : ReleaseRef to %ld
\n
"
,
This
,
This
->
ref
);
TRACE
(
"(%p) : ReleaseRef to %ld
\n
"
,
This
,
ref
);
if
(
ref
==
0
)
{
IWineD3DVolumeTexture_Release
(
This
->
wineD3DVolumeTexture
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
...
...
dlls/dmscript/dmscript_main.c
View file @
7a49e82d
...
...
@@ -38,13 +38,13 @@ static HRESULT WINAPI ScriptAutoImplSegmentCF_QueryInterface(LPCLASSFACTORY ifac
static
ULONG
WINAPI
ScriptAutoImplSegmentCF_AddRef
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
return
++
(
This
->
ref
);
return
InterlockedIncrement
(
&
This
->
ref
);
}
static
ULONG
WINAPI
ScriptAutoImplSegmentCF_Release
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
/* static class, won't be freed */
return
--
(
This
->
ref
);
return
InterlockedDecrement
(
&
This
->
ref
);
}
static
HRESULT
WINAPI
ScriptAutoImplSegmentCF_CreateInstance
(
LPCLASSFACTORY
iface
,
LPUNKNOWN
pOuter
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
...
...
@@ -82,13 +82,13 @@ static HRESULT WINAPI ScriptTrackCF_QueryInterface(LPCLASSFACTORY iface,REFIID r
static
ULONG
WINAPI
ScriptTrackCF_AddRef
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
return
++
(
This
->
ref
);
return
InterlockedIncrement
(
&
This
->
ref
);
}
static
ULONG
WINAPI
ScriptTrackCF_Release
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
/* static class, won't be freed */
return
--
(
This
->
ref
);
return
InterlockedDecrement
(
&
This
->
ref
);
}
static
HRESULT
WINAPI
ScriptTrackCF_CreateInstance
(
LPCLASSFACTORY
iface
,
LPUNKNOWN
pOuter
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
...
...
@@ -124,13 +124,13 @@ static HRESULT WINAPI AudioVBScriptCF_QueryInterface(LPCLASSFACTORY iface,REFIID
static
ULONG
WINAPI
AudioVBScriptCF_AddRef
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
return
++
(
This
->
ref
);
return
InterlockedIncrement
(
&
This
->
ref
);
}
static
ULONG
WINAPI
AudioVBScriptCF_Release
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
/* static class, won't be freed */
return
--
(
This
->
ref
);
return
InterlockedDecrement
(
&
This
->
ref
);
}
static
HRESULT
WINAPI
AudioVBScriptCF_CreateInstance
(
LPCLASSFACTORY
iface
,
LPUNKNOWN
pOuter
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
...
...
@@ -168,13 +168,13 @@ static HRESULT WINAPI ScriptCF_QueryInterface(LPCLASSFACTORY iface,REFIID riid,L
static
ULONG
WINAPI
ScriptCF_AddRef
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
return
++
(
This
->
ref
);
return
InterlockedIncrement
(
&
This
->
ref
);
}
static
ULONG
WINAPI
ScriptCF_Release
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
/* static class, won't be freed */
return
--
(
This
->
ref
);
return
InterlockedDecrement
(
&
This
->
ref
);
}
static
HRESULT
WINAPI
ScriptCF_CreateInstance
(
LPCLASSFACTORY
iface
,
LPUNKNOWN
pOuter
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
...
...
@@ -210,13 +210,13 @@ static HRESULT WINAPI ScriptAutoImplPerformanceCF_QueryInterface(LPCLASSFACTORY
static
ULONG
WINAPI
ScriptAutoImplPerformanceCF_AddRef
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
return
++
(
This
->
ref
);
return
InterlockedIncrement
(
&
This
->
ref
);
}
static
ULONG
WINAPI
ScriptAutoImplPerformanceCF_Release
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
/* static class, won't be freed */
return
--
(
This
->
ref
);
return
InterlockedDecrement
(
&
This
->
ref
);
}
static
HRESULT
WINAPI
ScriptAutoImplPerformanceCF_CreateInstance
(
LPCLASSFACTORY
iface
,
LPUNKNOWN
pOuter
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
...
...
@@ -254,13 +254,13 @@ static HRESULT WINAPI ScriptSourceCodeLoaderCF_QueryInterface(LPCLASSFACTORY ifa
static
ULONG
WINAPI
ScriptSourceCodeLoaderCF_AddRef
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
return
++
(
This
->
ref
);
return
InterlockedIncrement
(
&
This
->
ref
);
}
static
ULONG
WINAPI
ScriptSourceCodeLoaderCF_Release
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
/* static class, won't be freed */
return
--
(
This
->
ref
);
return
InterlockedDecrement
(
&
This
->
ref
);
}
static
HRESULT
WINAPI
ScriptSourceCodeLoaderCF_CreateInstance
(
LPCLASSFACTORY
iface
,
LPUNKNOWN
pOuter
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
...
...
@@ -298,13 +298,13 @@ static HRESULT WINAPI ScriptAutoImplSegmentStateCF_QueryInterface(LPCLASSFACTORY
static
ULONG
WINAPI
ScriptAutoImplSegmentStateCF_AddRef
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
return
++
(
This
->
ref
);
return
InterlockedIncrement
(
&
This
->
ref
);
}
static
ULONG
WINAPI
ScriptAutoImplSegmentStateCF_Release
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
/* static class, won't be freed */
return
--
(
This
->
ref
);
return
InterlockedDecrement
(
&
This
->
ref
);
}
static
HRESULT
WINAPI
ScriptAutoImplSegmentStateCF_CreateInstance
(
LPCLASSFACTORY
iface
,
LPUNKNOWN
pOuter
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
...
...
@@ -342,13 +342,13 @@ static HRESULT WINAPI ScriptAutoImplAudioPathConfigCF_QueryInterface(LPCLASSFACT
static
ULONG
WINAPI
ScriptAutoImplAudioPathConfigCF_AddRef
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
return
++
(
This
->
ref
);
return
InterlockedIncrement
(
&
This
->
ref
);
}
static
ULONG
WINAPI
ScriptAutoImplAudioPathConfigCF_Release
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
/* static class, won't be freed */
return
--
(
This
->
ref
);
return
InterlockedDecrement
(
&
This
->
ref
);
}
static
HRESULT
WINAPI
ScriptAutoImplAudioPathConfigCF_CreateInstance
(
LPCLASSFACTORY
iface
,
LPUNKNOWN
pOuter
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
...
...
@@ -386,13 +386,13 @@ static HRESULT WINAPI ScriptAutoImplAudioPathCF_QueryInterface(LPCLASSFACTORY if
static
ULONG
WINAPI
ScriptAutoImplAudioPathCF_AddRef
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
return
++
(
This
->
ref
);
return
InterlockedIncrement
(
&
This
->
ref
);
}
static
ULONG
WINAPI
ScriptAutoImplAudioPathCF_Release
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
/* static class, won't be freed */
return
--
(
This
->
ref
);
return
InterlockedDecrement
(
&
This
->
ref
);
}
static
HRESULT
WINAPI
ScriptAutoImplAudioPathCF_CreateInstance
(
LPCLASSFACTORY
iface
,
LPUNKNOWN
pOuter
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
...
...
@@ -430,13 +430,13 @@ static HRESULT WINAPI ScriptAutoImplSongCF_QueryInterface(LPCLASSFACTORY iface,R
static
ULONG
WINAPI
ScriptAutoImplSongCF_AddRef
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
return
++
(
This
->
ref
);
return
InterlockedIncrement
(
&
This
->
ref
);
}
static
ULONG
WINAPI
ScriptAutoImplSongCF_Release
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
/* static class, won't be freed */
return
--
(
This
->
ref
);
return
InterlockedDecrement
(
&
This
->
ref
);
}
static
HRESULT
WINAPI
ScriptAutoImplSongCF_CreateInstance
(
LPCLASSFACTORY
iface
,
LPUNKNOWN
pOuter
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
...
...
dlls/dmscript/script.c
View file @
7a49e82d
...
...
@@ -63,14 +63,19 @@ HRESULT WINAPI IDirectMusicScriptImpl_IUnknown_QueryInterface (LPUNKNOWN iface,
ULONG
WINAPI
IDirectMusicScriptImpl_IUnknown_AddRef
(
LPUNKNOWN
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicScriptImpl
,
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
IDirectMusicScriptImpl_IUnknown_Release
(
LPUNKNOWN
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicScriptImpl
,
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
->
pHeader
);
HeapFree
(
GetProcessHeap
(),
0
,
This
->
pVersion
);
...
...
dlls/dmscript/scripttrack.c
View file @
7a49e82d
...
...
@@ -51,14 +51,19 @@ HRESULT WINAPI IDirectMusicScriptTrack_IUnknown_QueryInterface (LPUNKNOWN iface,
ULONG
WINAPI
IDirectMusicScriptTrack_IUnknown_AddRef
(
LPUNKNOWN
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicScriptTrack
,
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
IDirectMusicScriptTrack_IUnknown_Release
(
LPUNKNOWN
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicScriptTrack
,
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/dmstyle/auditiontrack.c
View file @
7a49e82d
...
...
@@ -51,14 +51,19 @@ HRESULT WINAPI IDirectMusicAuditionTrack_IUnknown_QueryInterface (LPUNKNOWN ifac
ULONG
WINAPI
IDirectMusicAuditionTrack_IUnknown_AddRef
(
LPUNKNOWN
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicAuditionTrack
,
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
IDirectMusicAuditionTrack_IUnknown_Release
(
LPUNKNOWN
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicAuditionTrack
,
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/dmstyle/chordtrack.c
View file @
7a49e82d
...
...
@@ -52,14 +52,19 @@ HRESULT WINAPI IDirectMusicChordTrack_IUnknown_QueryInterface (LPUNKNOWN iface,
ULONG
WINAPI
IDirectMusicChordTrack_IUnknown_AddRef
(
LPUNKNOWN
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicChordTrack
,
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
IDirectMusicChordTrack_IUnknown_Release
(
LPUNKNOWN
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicChordTrack
,
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/dmstyle/commandtrack.c
View file @
7a49e82d
...
...
@@ -51,14 +51,19 @@ HRESULT WINAPI IDirectMusicCommandTrack_IUnknown_QueryInterface (LPUNKNOWN iface
ULONG
WINAPI
IDirectMusicCommandTrack_IUnknown_AddRef
(
LPUNKNOWN
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicCommandTrack
,
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
IDirectMusicCommandTrack_IUnknown_Release
(
LPUNKNOWN
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicCommandTrack
,
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/dmstyle/dmstyle_main.c
View file @
7a49e82d
...
...
@@ -38,13 +38,13 @@ static HRESULT WINAPI SectionCF_QueryInterface(LPCLASSFACTORY iface,REFIID riid,
static
ULONG
WINAPI
SectionCF_AddRef
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
return
++
(
This
->
ref
);
return
InterlockedIncrement
(
&
This
->
ref
);
}
static
ULONG
WINAPI
SectionCF_Release
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
/* static class, won't be freed */
return
--
(
This
->
ref
);
return
InterlockedDecrement
(
&
This
->
ref
);
}
static
HRESULT
WINAPI
SectionCF_CreateInstance
(
LPCLASSFACTORY
iface
,
LPUNKNOWN
pOuter
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
...
...
@@ -82,13 +82,13 @@ static HRESULT WINAPI StyleCF_QueryInterface(LPCLASSFACTORY iface,REFIID riid,LP
static
ULONG
WINAPI
StyleCF_AddRef
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
return
++
(
This
->
ref
);
return
InterlockedIncrement
(
&
This
->
ref
);
}
static
ULONG
WINAPI
StyleCF_Release
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
/* static class, won't be freed */
return
--
(
This
->
ref
);
return
InterlockedDecrement
(
&
This
->
ref
);
}
static
HRESULT
WINAPI
StyleCF_CreateInstance
(
LPCLASSFACTORY
iface
,
LPUNKNOWN
pOuter
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
...
...
@@ -124,13 +124,13 @@ static HRESULT WINAPI ChordTrackCF_QueryInterface(LPCLASSFACTORY iface,REFIID ri
static
ULONG
WINAPI
ChordTrackCF_AddRef
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
return
++
(
This
->
ref
);
return
InterlockedIncrement
(
&
This
->
ref
);
}
static
ULONG
WINAPI
ChordTrackCF_Release
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
/* static class, won't be freed */
return
--
(
This
->
ref
);
return
InterlockedDecrement
(
&
This
->
ref
);
}
static
HRESULT
WINAPI
ChordTrackCF_CreateInstance
(
LPCLASSFACTORY
iface
,
LPUNKNOWN
pOuter
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
...
...
@@ -166,13 +166,13 @@ static HRESULT WINAPI CommandTrackCF_QueryInterface(LPCLASSFACTORY iface,REFIID
static
ULONG
WINAPI
CommandTrackCF_AddRef
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
return
++
(
This
->
ref
);
return
InterlockedIncrement
(
&
This
->
ref
);
}
static
ULONG
WINAPI
CommandTrackCF_Release
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
/* static class, won't be freed */
return
--
(
This
->
ref
);
return
InterlockedDecrement
(
&
This
->
ref
);
}
static
HRESULT
WINAPI
CommandTrackCF_CreateInstance
(
LPCLASSFACTORY
iface
,
LPUNKNOWN
pOuter
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
...
...
@@ -208,13 +208,13 @@ static HRESULT WINAPI StyleTrackCF_QueryInterface(LPCLASSFACTORY iface,REFIID ri
static
ULONG
WINAPI
StyleTrackCF_AddRef
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
return
++
(
This
->
ref
);
return
InterlockedIncrement
(
&
This
->
ref
);
}
static
ULONG
WINAPI
StyleTrackCF_Release
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
/* static class, won't be freed */
return
--
(
This
->
ref
);
return
InterlockedDecrement
(
&
This
->
ref
);
}
static
HRESULT
WINAPI
StyleTrackCF_CreateInstance
(
LPCLASSFACTORY
iface
,
LPUNKNOWN
pOuter
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
...
...
@@ -250,13 +250,13 @@ static HRESULT WINAPI MotifTrackCF_QueryInterface(LPCLASSFACTORY iface,REFIID ri
static
ULONG
WINAPI
MotifTrackCF_AddRef
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
return
++
(
This
->
ref
);
return
InterlockedIncrement
(
&
This
->
ref
);
}
static
ULONG
WINAPI
MotifTrackCF_Release
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
/* static class, won't be freed */
return
--
(
This
->
ref
);
return
InterlockedDecrement
(
&
This
->
ref
);
}
static
HRESULT
WINAPI
MotifTrackCF_CreateInstance
(
LPCLASSFACTORY
iface
,
LPUNKNOWN
pOuter
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
...
...
@@ -292,13 +292,13 @@ static HRESULT WINAPI AuditionTrackCF_QueryInterface(LPCLASSFACTORY iface,REFIID
static
ULONG
WINAPI
AuditionTrackCF_AddRef
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
return
++
(
This
->
ref
);
return
InterlockedIncrement
(
&
This
->
ref
);
}
static
ULONG
WINAPI
AuditionTrackCF_Release
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
/* static class, won't be freed */
return
--
(
This
->
ref
);
return
InterlockedDecrement
(
&
This
->
ref
);
}
static
HRESULT
WINAPI
AuditionTrackCF_CreateInstance
(
LPCLASSFACTORY
iface
,
LPUNKNOWN
pOuter
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
...
...
@@ -334,13 +334,13 @@ static HRESULT WINAPI MuteTrackCF_QueryInterface(LPCLASSFACTORY iface,REFIID rii
static
ULONG
WINAPI
MuteTrackCF_AddRef
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
return
++
(
This
->
ref
);
return
InterlockedIncrement
(
&
This
->
ref
);
}
static
ULONG
WINAPI
MuteTrackCF_Release
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
/* static class, won't be freed */
return
--
(
This
->
ref
);
return
InterlockedDecrement
(
&
This
->
ref
);
}
static
HRESULT
WINAPI
MuteTrackCF_CreateInstance
(
LPCLASSFACTORY
iface
,
LPUNKNOWN
pOuter
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
...
...
dlls/dmstyle/motiftrack.c
View file @
7a49e82d
...
...
@@ -51,14 +51,19 @@ HRESULT WINAPI IDirectMusicMotifTrack_IUnknown_QueryInterface (LPUNKNOWN iface,
ULONG
WINAPI
IDirectMusicMotifTrack_IUnknown_AddRef
(
LPUNKNOWN
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicMotifTrack
,
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
IDirectMusicMotifTrack_IUnknown_Release
(
LPUNKNOWN
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicMotifTrack
,
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/dmstyle/mutetrack.c
View file @
7a49e82d
...
...
@@ -51,14 +51,19 @@ HRESULT WINAPI IDirectMusicMuteTrack_IUnknown_QueryInterface (LPUNKNOWN iface, R
ULONG
WINAPI
IDirectMusicMuteTrack_IUnknown_AddRef
(
LPUNKNOWN
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicMuteTrack
,
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
IDirectMusicMuteTrack_IUnknown_Release
(
LPUNKNOWN
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicMuteTrack
,
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/dmstyle/style.c
View file @
7a49e82d
...
...
@@ -59,14 +59,19 @@ HRESULT WINAPI IDirectMusicStyle8Impl_IUnknown_QueryInterface (LPUNKNOWN iface,
ULONG
WINAPI
IDirectMusicStyle8Impl_IUnknown_AddRef
(
LPUNKNOWN
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicStyle8Impl
,
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
IDirectMusicStyle8Impl_IUnknown_Release
(
LPUNKNOWN
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicStyle8Impl
,
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/dmstyle/styletrack.c
View file @
7a49e82d
...
...
@@ -51,14 +51,19 @@ HRESULT WINAPI IDirectMusicStyleTrack_IUnknown_QueryInterface (LPUNKNOWN iface,
ULONG
WINAPI
IDirectMusicStyleTrack_IUnknown_AddRef
(
LPUNKNOWN
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicStyleTrack
,
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
IDirectMusicStyleTrack_IUnknown_Release
(
LPUNKNOWN
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicStyleTrack
,
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