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
8a6295a0
Commit
8a6295a0
authored
Jan 19, 2005
by
Joris Huizer
Committed by
Alexandre Julliard
Jan 19, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get rid of some TRACE(..., This->resource.ref).
parent
2717b812
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
25 deletions
+26
-25
basetexture.c
dlls/wined3d/basetexture.c
+6
-5
indexbuffer.c
dlls/wined3d/indexbuffer.c
+5
-5
resource.c
dlls/wined3d/resource.c
+5
-5
surface.c
dlls/wined3d/surface.c
+5
-5
vertexbuffer.c
dlls/wined3d/vertexbuffer.c
+5
-5
No files found.
dlls/wined3d/basetexture.c
View file @
8a6295a0
...
...
@@ -37,16 +37,17 @@ HRESULT WINAPI IWineD3DBaseTextureImpl_QueryInterface(IWineD3DBaseTexture *iface
ULONG
WINAPI
IWineD3DBaseTextureImpl_AddRef
(
IWineD3DBaseTexture
*
iface
)
{
IWineD3DBaseTextureImpl
*
This
=
(
IWineD3DBaseTextureImpl
*
)
iface
;
TRACE
(
"(%p) : AddRef increasing from %ld
\n
"
,
This
,
This
->
resource
.
ref
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
resource
.
ref
);
TRACE
(
"(%p) : AddRef increasing from %ld
\n
"
,
This
,
ref
-
1
);
IUnknown_AddRef
(
This
->
resource
.
parent
);
return
InterlockedIncrement
(
&
This
->
resource
.
ref
)
;
return
ref
;
}
ULONG
WINAPI
IWineD3DBaseTextureImpl_Release
(
IWineD3DBaseTexture
*
iface
)
{
IWineD3DBaseTextureImpl
*
This
=
(
IWineD3DBaseTextureImpl
*
)
iface
;
ULONG
ref
;
TRACE
(
"(%p) : Releasing from %ld
\n
"
,
This
,
This
->
resource
.
ref
);
ref
=
InterlockedDecrement
(
&
This
->
resource
.
ref
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
resource
.
ref
);
TRACE
(
"(%p) : Releasing from %ld
\n
"
,
This
,
ref
+
1
);
if
(
ref
==
0
)
{
IWineD3DDevice_Release
((
IWineD3DDevice
*
)
This
->
resource
.
wineD3DDevice
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
...
...
dlls/wined3d/indexbuffer.c
View file @
8a6295a0
...
...
@@ -38,16 +38,16 @@ HRESULT WINAPI IWineD3DIndexBufferImpl_QueryInterface(IWineD3DIndexBuffer *iface
ULONG
WINAPI
IWineD3DIndexBufferImpl_AddRef
(
IWineD3DIndexBuffer
*
iface
)
{
IWineD3DIndexBufferImpl
*
This
=
(
IWineD3DIndexBufferImpl
*
)
iface
;
TRACE
(
"(%p) : AddRef increasing from %ld
\n
"
,
This
,
This
->
resource
.
ref
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
resource
.
ref
);
TRACE
(
"(%p) : AddRef increasing from %ld
\n
"
,
This
,
ref
-
1
);
IUnknown_AddRef
(
This
->
resource
.
parent
);
return
InterlockedIncrement
(
&
This
->
resource
.
ref
);
return
ref
;
}
ULONG
WINAPI
IWineD3DIndexBufferImpl_Release
(
IWineD3DIndexBuffer
*
iface
)
{
IWineD3DIndexBufferImpl
*
This
=
(
IWineD3DIndexBufferImpl
*
)
iface
;
ULONG
ref
;
TRACE
(
"(%p) : Releasing from %ld
\n
"
,
This
,
This
->
resource
.
ref
);
ref
=
InterlockedDecrement
(
&
This
->
resource
.
ref
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
resource
.
ref
);
TRACE
(
"(%p) : Releasing from %ld
\n
"
,
This
,
ref
+
1
);
if
(
ref
==
0
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
->
allocatedMemory
);
IWineD3DDevice_Release
((
IWineD3DDevice
*
)
This
->
resource
.
wineD3DDevice
);
...
...
dlls/wined3d/resource.c
View file @
8a6295a0
...
...
@@ -36,15 +36,15 @@ HRESULT WINAPI IWineD3DResourceImpl_QueryInterface(IWineD3DResource *iface, REFI
ULONG
WINAPI
IWineD3DResourceImpl_AddRef
(
IWineD3DResource
*
iface
)
{
IWineD3DResourceImpl
*
This
=
(
IWineD3DResourceImpl
*
)
iface
;
TRACE
(
"(%p) : AddRef increasing from %ld
\n
"
,
This
,
This
->
resource
.
ref
);
return
InterlockedIncrement
(
&
This
->
resource
.
ref
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
resource
.
ref
);
TRACE
(
"(%p) : AddRef increasing from %ld
\n
"
,
This
,
ref
-
1
);
return
ref
;
}
ULONG
WINAPI
IWineD3DResourceImpl_Release
(
IWineD3DResource
*
iface
)
{
IWineD3DResourceImpl
*
This
=
(
IWineD3DResourceImpl
*
)
iface
;
ULONG
ref
;
TRACE
(
"(%p) : Releasing from %ld
\n
"
,
This
,
This
->
resource
.
ref
);
ref
=
InterlockedDecrement
(
&
This
->
resource
.
ref
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
resource
.
ref
);
TRACE
(
"(%p) : Releasing from %ld
\n
"
,
This
,
ref
+
1
);
if
(
ref
==
0
)
{
IWineD3DDevice_Release
((
IWineD3DDevice
*
)
This
->
resource
.
wineD3DDevice
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
...
...
dlls/wined3d/surface.c
View file @
8a6295a0
...
...
@@ -38,16 +38,16 @@ HRESULT WINAPI IWineD3DSurfaceImpl_QueryInterface(IWineD3DSurface *iface, REFIID
ULONG
WINAPI
IWineD3DSurfaceImpl_AddRef
(
IWineD3DSurface
*
iface
)
{
IWineD3DSurfaceImpl
*
This
=
(
IWineD3DSurfaceImpl
*
)
iface
;
TRACE
(
"(%p) : AddRef increasing from %ld
\n
"
,
This
,
This
->
resource
.
ref
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
resource
.
ref
);
TRACE
(
"(%p) : AddRef increasing from %ld
\n
"
,
This
,
ref
-
1
);
IUnknown_AddRef
(
This
->
resource
.
parent
);
return
InterlockedIncrement
(
&
This
->
resource
.
ref
)
;
return
ref
;
}
ULONG
WINAPI
IWineD3DSurfaceImpl_Release
(
IWineD3DSurface
*
iface
)
{
IWineD3DSurfaceImpl
*
This
=
(
IWineD3DSurfaceImpl
*
)
iface
;
ULONG
ref
;
TRACE
(
"(%p) : Releasing from %ld
\n
"
,
This
,
This
->
resource
.
ref
);
ref
=
InterlockedDecrement
(
&
This
->
resource
.
ref
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
resource
.
ref
);
TRACE
(
"(%p) : Releasing from %ld
\n
"
,
This
,
ref
+
1
);
if
(
ref
==
0
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
->
allocatedMemory
);
IWineD3DDevice_Release
((
IWineD3DDevice
*
)
This
->
resource
.
wineD3DDevice
);
...
...
dlls/wined3d/vertexbuffer.c
View file @
8a6295a0
...
...
@@ -38,16 +38,16 @@ HRESULT WINAPI IWineD3DVertexBufferImpl_QueryInterface(IWineD3DVertexBuffer *ifa
ULONG
WINAPI
IWineD3DVertexBufferImpl_AddRef
(
IWineD3DVertexBuffer
*
iface
)
{
IWineD3DVertexBufferImpl
*
This
=
(
IWineD3DVertexBufferImpl
*
)
iface
;
TRACE
(
"(%p) : AddRef increasing from %ld
\n
"
,
This
,
This
->
resource
.
ref
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
resource
.
ref
);
TRACE
(
"(%p) : AddRef increasing from %ld
\n
"
,
This
,
ref
-
1
);
IUnknown_AddRef
(
This
->
resource
.
parent
);
return
InterlockedIncrement
(
&
This
->
resource
.
ref
)
;
return
ref
;
}
ULONG
WINAPI
IWineD3DVertexBufferImpl_Release
(
IWineD3DVertexBuffer
*
iface
)
{
IWineD3DVertexBufferImpl
*
This
=
(
IWineD3DVertexBufferImpl
*
)
iface
;
ULONG
ref
;
TRACE
(
"(%p) : Releasing from %ld
\n
"
,
This
,
This
->
resource
.
ref
);
ref
=
InterlockedDecrement
(
&
This
->
resource
.
ref
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
resource
.
ref
);
TRACE
(
"(%p) : Releasing from %ld
\n
"
,
This
,
ref
+
1
);
if
(
ref
==
0
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
->
allocatedMemory
);
IWineD3DDevice_Release
((
IWineD3DDevice
*
)
This
->
resource
.
wineD3DDevice
);
...
...
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